From 29a3b9d93510e135044eb668f28f96324bbb2f76 Mon Sep 17 00:00:00 2001 From: Vlad Kozarez Date: Fri, 6 Dec 2024 17:46:46 +0300 Subject: [PATCH] AND-9355 xrp reserve added in error --- .../com/tangem/blockchain/blockchains/xrp/XrpWalletManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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