Updated on 2026-08-14

This commit is contained in:
Tangem 2023-02-20 19:52:23 +03:00
parent 90001a2211
commit 99244e87a6

View file

@ -26,7 +26,7 @@ import com.tangem.lib.crypto.models.transactions.SendTxResult
import com.tangem.tap.common.redux.global.GlobalAction
import com.tangem.tap.domain.TangemSigner
import com.tangem.tap.domain.tokens.models.BlockchainNetwork
import com.tangem.tap.store
import com.tangem.tap.features.wallet.redux.WalletAction
import com.tangem.tap.tangemSdk
import java.math.BigDecimal
@ -109,6 +109,8 @@ class TransactionManagerImpl(
FirebaseCrashlytics.getInstance().recordException(ex)
return SendTxResult.UnknownError(ex)
}
// workaround, should update wallet after transaction
appStateHolder.mainStore?.dispatch(WalletAction.LoadData.Refresh)
return handleSendResult(sendResult)
}
@ -191,7 +193,7 @@ class TransactionManagerImpl(
tangemSdk = tangemSdk,
initialMessage = Message(),
) { signResponse ->
store.dispatch(
appStateHolder.mainStore?.dispatch(
GlobalAction.UpdateWalletSignedHashes(
walletSignedHashes = signResponse.totalSignedHashes,
walletPublicKey = walletManager.wallet.publicKey.seedKey,