From dbb621fa9e61c6a8b53d6554db57d98a90cf5d8e Mon Sep 17 00:00:00 2001 From: x Date: Sun, 19 Nov 2023 19:54:12 +0100 Subject: [PATCH] fix txs_verification unit test --- src/contract/money/tests/txs_verification.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/contract/money/tests/txs_verification.rs b/src/contract/money/tests/txs_verification.rs index e39f2da5bbdc..db74830674ac 100644 --- a/src/contract/money/tests/txs_verification.rs +++ b/src/contract/money/tests/txs_verification.rs @@ -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);