From 10e7018afab09191d8c202fe0aeceff6a874f381 Mon Sep 17 00:00:00 2001 From: M Date: Thu, 24 Feb 2022 19:54:38 +0300 Subject: [PATCH] Fix for haven wallet --- ...ion.dart => haven_transaction_creation_exception.dart} | 0 cw_haven/lib/haven_wallet.dart | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename cw_haven/lib/{monero_transaction_creation_exception.dart => haven_transaction_creation_exception.dart} (100%) diff --git a/cw_haven/lib/monero_transaction_creation_exception.dart b/cw_haven/lib/haven_transaction_creation_exception.dart similarity index 100% rename from cw_haven/lib/monero_transaction_creation_exception.dart rename to cw_haven/lib/haven_transaction_creation_exception.dart diff --git a/cw_haven/lib/haven_wallet.dart b/cw_haven/lib/haven_wallet.dart index b409f3644..29dfcd589 100644 --- a/cw_haven/lib/haven_wallet.dart +++ b/cw_haven/lib/haven_wallet.dart @@ -153,20 +153,20 @@ abstract class HavenWalletBase extends WalletBase item.sendAll || item.formattedCryptoAmount <= 0)) { - throw MoneroTransactionCreationException('Wrong balance. Not enough XMR on your balance.'); + throw HavenTransactionCreationException('Wrong balance. Not enough XMR on your balance.'); } final int totalAmount = outputs.fold(0, (acc, value) => acc + value.formattedCryptoAmount); if (unlockedBalance < totalAmount) { - throw MoneroTransactionCreationException('Wrong balance. Not enough XMR on your balance.'); + throw HavenTransactionCreationException('Wrong balance. Not enough XMR on your balance.'); } final moneroOutputs = outputs.map((output) => @@ -194,7 +194,7 @@ abstract class HavenWalletBase extends WalletBase