Skip to content

Commit

Permalink
Fix CCTP status not showing up correctly. (#279)
Browse files Browse the repository at this point in the history
The hash returned can be uppercased(), while the downstream code expects
lowercase.

Also bumping Abacus
  • Loading branch information
ruixhuang authored Dec 6, 2024
1 parent 35908e6 commit 41c7f7d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion v4/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ ext {
compileSdkVersion = 34

// App dependencies
abacusVersion = '1.13.39'
abacusVersion = '1.13.40'
carteraVersion = '0.1.15'
kollectionsVersion = '2.0.16'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ data class SharedMarketPositionViewState(
configs.displayStepSizeDecimals ?: 1,
),
notionalTotal = formatter.dollar(notionalTotal, 2),
token = TokenTextView.ViewState(
symbol = asset?.displayableAssetId ?: market.assetId,
),
token = asset?.displayableAssetId?.let {
TokenTextView.ViewState(
symbol = it,
)
},
side = SideTextView.ViewState(
localizer = localizer,
coloringOption = SideTextView.ColoringOption.WITH_BACKGROUND,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class DydxTransferDepositCtaButtonModel @Inject constructor(
).runWithLogs()

isSubmittingFlow.value = false
val hash = event.getOrNull()
val hash = event.getOrNull()?.lowercase()
if (hash != null) {
sendOnboardingAnalytics()
transferAnalytics.logDeposit(transferInput)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class DydxTransferOutCtaButtonModel @Inject constructor(
}
}

val hash = transferResult.getOrNull()
val hash = transferResult.getOrNull()?.lowercase()
if (hash != null) {
abacusStateManager.resetTransferInputFields()
transferInstanceStore.addTransferHash(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class DydxTransferWithdrawalCtaButtonModel @Inject constructor(
}
}

val hash = withdrawResult.getOrNull()
val hash = withdrawResult.getOrNull()?.lowercase()
if (hash != null) {
transferAnalytics.logWithdrawal(transferInput)
transferInstanceStore.addTransferHash(
Expand Down

0 comments on commit 41c7f7d

Please sign in to comment.