Updated on 2026-08-14

This commit is contained in:
Tangem 2022-04-13 19:43:03 +03:00
commit 12bc959fde
112 changed files with 3193 additions and 47273 deletions

View file

@ -67,7 +67,9 @@ class OnboardingManager(
}
}
return balance.copy(currency = Currency.Blockchain(walletManager.wallet.blockchain))
return balance.copy(currency = Currency.Blockchain(
walletManager.wallet.blockchain, walletManager.wallet.publicKey.derivationPath?.rawPath)
)
}
fun activationStarted(cardId: String) {
@ -81,7 +83,7 @@ class OnboardingManager(
data class OnboardingWalletBalance(
val value: BigDecimal = BigDecimal.ZERO,
val currency: Currency.Blockchain = Currency.Blockchain(Blockchain.Unknown),
val currency: Currency.Blockchain = Currency.Blockchain(Blockchain.Unknown, null),
val hasIncomingTransaction: Boolean = false,
val state: ProgressState,
val error: TapError? = null,

View file

@ -113,7 +113,10 @@ private fun handleNoteAction(appState: () -> AppState?, action: Action, dispatch
val isLoadedBefore = noteState.walletBalance.state != ProgressState.Loading
val balanceIsLoading = noteState.walletBalance.copy(
currency = Currency.Blockchain(walletManager.wallet.blockchain),
currency = Currency.Blockchain(
walletManager.wallet.blockchain,
walletManager.wallet.publicKey.derivationPath?.rawPath
),
state = ProgressState.Loading,
error = null,
criticalError = null

View file

@ -215,7 +215,10 @@ private fun handle(action: Action, dispatch: DispatchFunction) {
}
val isLoadedBefore = twinCardsState.walletBalance.state != ProgressState.Loading
val balanceIsLoading = twinCardsState.walletBalance.copy(
currency = Currency.Blockchain(walletManager.wallet.blockchain),
currency = Currency.Blockchain(
walletManager.wallet.blockchain,
walletManager.wallet.publicKey.derivationPath?.rawPath
),
state = ProgressState.Loading,
error = null,
criticalError = null