Skip to content

Commit

Permalink
re-introducing note owner check
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 27, 2025
1 parent a3bd7fb commit d711167
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ contract Claim {
target_address == proof_note.header.contract_address,
"Note does not correspond to the target contract",
);
assert_eq(proof_note.owner, context.msg_sender(), "Note does not belong to the sender");

// 2) Prove that the note hash exists in the note hash tree
let header = context.get_block_header();
Expand Down

0 comments on commit d711167

Please sign in to comment.