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