Skip to content

Commit

Permalink
Update noir-projects/noir-contracts/contracts/nft_contract/src/main.nr
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolás Venturo <[email protected]>
  • Loading branch information
benesjan and nventuro authored Sep 16, 2024
1 parent d9a3b30 commit a9370a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ contract NFT {
let from_ovpk_m = get_current_public_keys(&mut context, from).ovpk_m;
let to_keys = get_current_public_keys(&mut context, to);

let note = NFTNote::new(token_id, to_keys.npk_m.hash());
nfts.at(to).insert(&mut note).emit(encode_and_encrypt_note_with_keys(&mut context, from_ovpk_m, to_keys.ivpk_m, to));
let new_note = NFTNote::new(token_id, to_keys.npk_m.hash());
nfts.at(to).insert(&mut new_note).emit(encode_and_encrypt_note_with_keys(&mut context, from_ovpk_m, to_keys.ivpk_m, to));
}

#[aztec(private)]
Expand Down

0 comments on commit a9370a6

Please sign in to comment.