|
@@ -157,14 +157,14 @@ fn genesis_mint() -> Result<()> {
|
|
|
|
|
|
|
|
th.assert_trees(&HOLDERS);
|
|
th.assert_trees(&HOLDERS);
|
|
|
|
|
|
|
|
|
|
+ // Bob should have his old OwnCoin, and this new one.
|
|
|
|
|
+ let bob_oc = th.gather_owncoin(&Holder::Bob, &transfer_params.outputs[0], None)?;
|
|
|
|
|
+ bob_owncoins.push(bob_oc);
|
|
|
|
|
+
|
|
|
// Alice should now have one OwnCoin with the change from the above transaction.
|
|
// Alice should now have one OwnCoin with the change from the above transaction.
|
|
|
- let alice_oc = th.gather_owncoin(&Holder::Alice, &transfer_params.outputs[0], None)?;
|
|
|
|
|
|
|
+ let alice_oc = th.gather_owncoin(&Holder::Alice, &transfer_params.outputs[1], None)?;
|
|
|
alice_owncoins.push(alice_oc);
|
|
alice_owncoins.push(alice_oc);
|
|
|
|
|
|
|
|
- // Bob should have his old one, and this new one.
|
|
|
|
|
- let bob_oc = th.gather_owncoin(&Holder::Bob, &transfer_params.outputs[1], None)?;
|
|
|
|
|
- bob_owncoins.push(bob_oc);
|
|
|
|
|
-
|
|
|
|
|
assert!(alice_owncoins.len() == 1);
|
|
assert!(alice_owncoins.len() == 1);
|
|
|
assert!(bob_owncoins.len() == 2);
|
|
assert!(bob_owncoins.len() == 2);
|
|
|
|
|
|
|
@@ -193,11 +193,11 @@ fn genesis_mint() -> Result<()> {
|
|
|
th.assert_trees(&HOLDERS);
|
|
th.assert_trees(&HOLDERS);
|
|
|
|
|
|
|
|
// Alice should now have two OwnCoins
|
|
// Alice should now have two OwnCoins
|
|
|
- let alice_oc = th.gather_owncoin(&Holder::Alice, &transfer_params.outputs[1], None)?;
|
|
|
|
|
|
|
+ let alice_oc = th.gather_owncoin(&Holder::Alice, &transfer_params.outputs[0], None)?;
|
|
|
alice_owncoins.push(alice_oc);
|
|
alice_owncoins.push(alice_oc);
|
|
|
|
|
|
|
|
// Bob should have two with the change from the above tx
|
|
// Bob should have two with the change from the above tx
|
|
|
- let bob_oc = th.gather_owncoin(&Holder::Bob, &transfer_params.outputs[0], None)?;
|
|
|
|
|
|
|
+ let bob_oc = th.gather_owncoin(&Holder::Bob, &transfer_params.outputs[1], None)?;
|
|
|
bob_owncoins.push(bob_oc);
|
|
bob_owncoins.push(bob_oc);
|
|
|
|
|
|
|
|
// Validating transaction outcomes
|
|
// Validating transaction outcomes
|