Skip to content

Commit

Permalink
fix: fee calculation in for btc txs closes #4455
Browse files Browse the repository at this point in the history
  • Loading branch information
hozzjss authored and kyranjamie committed Oct 31, 2023
1 parent 24a124c commit cc5908b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function determineUtxosForSpend({
sizeInfo = txSizer.calcTxSize({
// Only p2wpkh is supported by the wallet
input_script: 'p2wpkh',
input_count: neededUtxos.length,
input_count: neededUtxos.length + 1,
// From the address of the recipient, we infer the output type
[addressInfo.type + '_output_count']: 2,
});
Expand Down

0 comments on commit cc5908b

Please sign in to comment.