Skip to content

Commit

Permalink
AND-9355 xrp reserve added in error
Browse files Browse the repository at this point in the history
  • Loading branch information
kozarezvlad committed Dec 6, 2024
1 parent 4bf3e25 commit 29a3b9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 29a3b9d

Please sign in to comment.