Skip to content

Commit 6cb870e

Browse files
committed
fix mweb -> mweb send all
1 parent e7e053f commit 6cb870e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,18 @@ mixin ElectrumXInterface<T extends ElectrumXCurrencyInterface>
265265
if (isSendAll || isSendAllCoinControlUtxos) {
266266
if ((overrideFeeAmount ?? BigInt.zero) + satoshiAmountToSend !=
267267
satoshisBeingUsed) {
268+
Logging.instance.d("txData.type: ${txData.type}");
269+
Logging.instance.d("isSendAll: $isSendAll");
270+
Logging.instance.d(
271+
"isSendAllCoinControlUtxos: $isSendAllCoinControlUtxos",
272+
);
273+
Logging.instance.d("overrideFeeAmount: $overrideFeeAmount");
274+
Logging.instance.d("satoshiAmountToSend: $satoshiAmountToSend");
275+
Logging.instance.d("satoshisBeingUsed: $satoshisBeingUsed");
276+
268277
// hack check
269-
if (txData.type != TxType.mwebPegIn) {
278+
if (!(txData.type == TxType.mwebPegIn ||
279+
(txData.type == TxType.mweb && overrideFeeAmount != null))) {
270280
throw Exception(
271281
"Something happened that should never actually happen. "
272282
"Please report this error to the developers.",

0 commit comments

Comments
 (0)