fix send all (#1766)
* shouldn't matter, but still investigating why this fixes it * got it, but this change is just for consistency [skip ci]
Omar Hatem committed
Oct 22, 2024 at 16:46 UTC
3898208a6aad9f41b38eaca210c66178a38156f4
1 file changed
+2
-2
cw_bitcoin/lib/electrum_wallet.dart
+2
-2
@@ -1063,7 +1063,7 @@ abstract class ElectrumWalletBase
1063
1064
if (sendAll) {
1065
estimatedTx = await estimateSendAllTx(
1066
- outputs,
1066
+ updatedOutputs,
1067
feeRateInt,
1068
memo: memo,
1069
credentialsAmount: credentialsAmount,
@@ -1115,7 +1115,7 @@ abstract class ElectrumWalletBase
1115
if (network is BitcoinCashNetwork) {
1116
txb = ForkedTransactionBuilder(
1117
utxos: estimatedTx.utxos,
1118
- outputs: outputs,
1118
+ outputs: updatedOutputs,
1119
fee: BigInt.from(estimatedTx.fee),
1120
network: network,
1121
memo: estimatedTx.memo,