Skip to content

Commit

Permalink
quick fix [still investigating]
Browse files Browse the repository at this point in the history
  • Loading branch information
fossephate committed Jan 16, 2025
1 parent 1f37f6b commit 1111261
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cw_bitcoin/lib/litecoin_wallet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,16 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
}

if (!mwebEnabled) {
throw Exception("MWEB is not enabled! can't calculate fee without starting the mweb server!");
// in the unlikely event that we accidentally included mweb inputs or outputs, this transaction will just fail:
return await super.calcFee(
utxos: utxos,
outputs: outputs,
network: network,
memo: memo,
feeRate: feeRate,
inputPrivKeyInfos: inputPrivKeyInfos,
vinOutpoints: vinOutpoints,
);
}

if (outputs.length == 1 && outputs[0].toOutput.amount == BigInt.zero) {
Expand Down

0 comments on commit 1111261

Please sign in to comment.