Skip to content

Commit

Permalink
test(electrum): test for checking that fee calculation is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
f3r10 committed Dec 3, 2024
1 parent 879a9ce commit 6b67cab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/electrum/tests/test_electrum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,12 @@ fn test_check_fee_calculation() -> anyhow::Result<()> {
.assume_checked();
let prev_amt = SEND_AMOUNT + Amount::from_sat(1650);
env.send(&new_addr, prev_amt)?;
let prev_hash_block = env.mine_blocks(1, None)?.into_iter().nth(0);
let prev_hash_block = env.mine_blocks(1, None)?.into_iter().next();

let txid = env.send(&addr_to_track, SEND_AMOUNT)?;

// Mine a block to confirm sent tx.
let hash_block = env.mine_blocks(1, None)?.into_iter().nth(0);
let hash_block = env.mine_blocks(1, None)?.into_iter().next();

// Look at the tx we just sent, it should have 1 input and 1 output
let tx = env
Expand Down

0 comments on commit 6b67cab

Please sign in to comment.