diff --git a/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart b/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart index eda5b0baa..4c5b3e926 100644 --- a/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart +++ b/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart @@ -224,7 +224,12 @@ mixin ElectrumXInterface final utxoSigningData = await fetchBuildTxData(utxoObjectsToUse); if (isSendAll || isSendAllCoinControlUtxos) { - assert(satoshiAmountToSend == satoshisBeingUsed); + if (satoshiAmountToSend != satoshisBeingUsed) { + throw Exception( + "Something happened that should never actually happen. " + "Please report this error to the developers.", + ); + } return await _sendAllBuilder( txData: txData, recipientAddress: recipientAddress,