Skip to content

Commit

Permalink
Correct reveal tx fee calculation (#1853)
Browse files Browse the repository at this point in the history
Co-authored-by: raphjaph <[email protected]>
  • Loading branch information
gmart7t2 and raphjaph authored Mar 7, 2023
1 parent 98d01be commit 332a0bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/subcommand/wallet/inscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ impl Inscribe {

utxos.insert(
reveal_tx.input[0].previous_output,
Amount::from_sat(unsigned_commit_tx.output[0].value),
Amount::from_sat(
unsigned_commit_tx.output[reveal_tx.input[0].previous_output.vout as usize].value,
),
);

let fees =
Expand Down

0 comments on commit 332a0bd

Please sign in to comment.