Skip to content

Commit

Permalink
fix txs_verification unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxxxxxxxxxxx committed Nov 19, 2023
1 parent 89da561 commit dbb621f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/contract/money/tests/txs_verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ fn txs_verification() -> Result<()> {

th.assert_trees(&HOLDERS);

// Bob should now have the new OwnCoin.
let bob_oc = th.gather_owncoin(&Holder::Bob, &txs_params[0].outputs[0], None)?;
bob_owncoins.push(bob_oc);

// Alice should now have one OwnCoin with the change from the above transaction.
let alice_oc = th.gather_owncoin(&Holder::Alice, &txs_params[0].outputs[0], None)?;
let alice_oc = th.gather_owncoin(&Holder::Alice, &txs_params[0].outputs[1], None)?;
alice_owncoins.push(alice_oc);

// Bob should now have this new one.
let bob_oc = th.gather_owncoin(&Holder::Bob, &txs_params[0].outputs[1], None)?;
bob_owncoins.push(bob_oc);

assert!(alice_owncoins.len() == 1);
assert!(bob_owncoins.len() == 1);

Expand Down

0 comments on commit dbb621f

Please sign in to comment.