fix: send all with multiple outs

This commit is contained in:
Rafael Saes 2024-04-30 12:50:58 -03:00
parent 67256d30e6
commit 4a7d8ca006

View file

@ -569,8 +569,9 @@ abstract class ElectrumWalletBase
}
}
outputs[outputs.length - 1] =
BitcoinOutput(address: outputs.last.address, value: BigInt.from(amount));
if (outputs.length == 1) {
outputs[0] = BitcoinOutput(address: outputs.last.address, value: BigInt.from(amount));
}
return EstimatedTxResult(
utxos: utxoDetails.utxos,