diff --git a/blockchain/src/main/java/com/tangem/blockchain/blockchains/xrp/XrpWalletManager.kt b/blockchain/src/main/java/com/tangem/blockchain/blockchains/xrp/XrpWalletManager.kt index 13d61124..97ebd728 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/blockchains/xrp/XrpWalletManager.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/blockchains/xrp/XrpWalletManager.kt @@ -34,12 +34,12 @@ class XrpWalletManager( private fun updateWallet(response: XrpInfoResponse) { Log.d(this::class.java.simpleName, "Balance is ${response.balance}") + wallet.setReserveValue(response.reserveTotal) if (!response.accountFound) { - updateError(BlockchainSdkError.AccountNotFound()) + updateError(BlockchainSdkError.AccountNotFound(response.reserveTotal)) return } wallet.setCoinValue(response.balance - response.reserveTotal) - wallet.setReserveValue(response.reserveTotal) transactionBuilder.sequence = response.sequence transactionBuilder.minReserve = response.reserveBase