Updated on 2026-08-14

This commit is contained in:
Tangem 2023-02-20 22:34:10 +03:00
parent 99244e87a6
commit 2f936ad2f3
4 changed files with 9 additions and 3 deletions

View file

@ -113,6 +113,7 @@ class UserWalletManagerImpl(
val action = addNonNativeTokenToWalletAction(currency, card, blockchain)
val mainStore = requireNotNull(appStateHolder.mainStore) { "mainStore is null" }
mainStore.dispatchOnMain(action)
delay(DELAY_UPDATE_WALLET)
}
}
@ -238,6 +239,11 @@ class UserWalletManagerImpl(
)
}
override fun refreshWallet() {
// workaround, should update wallet after transaction
appStateHolder.mainStore?.dispatchOnMain(WalletAction.LoadData.Refresh)
}
private fun createDerivationParams(derivationStyle: DerivationStyle?): DerivationParams? {
// todo clarify if its need to add Custom
return derivationStyle?.let { DerivationParams.Default(derivationStyle) }