example/tx: Fix compile error.

This commit is contained in:
parazyd
2022-08-09 18:59:20 +02:00
parent 548052c6be
commit c9920f1f14

View File

@@ -170,7 +170,7 @@ fn main() -> Result<()> {
// Now spend
let owncoin = &state.own_coins[0];
let note = owncoin.note;
let note = &owncoin.note;
let leaf_position = owncoin.leaf_position;
let root = state.tree.root(0).unwrap();
let merkle_path = state.tree.authentication_path(leaf_position, &root).unwrap();
@@ -181,7 +181,7 @@ fn main() -> Result<()> {
leaf_position,
merkle_path,
secret: keypair.secret,
note,
note: note.clone(),
}],
outputs: vec![TransactionBuilderOutputInfo {
value: 110,