Skip to content

Commit

Permalink
Veirfy header state root
Browse files Browse the repository at this point in the history
  • Loading branch information
LogvinovLeon committed Feb 16, 2024
1 parent 580f5ca commit 415467a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethereum_history_api/circuits/lib/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ fn main(
state_root: pub [u8; HASH_LENGTH]
) -> pub Account {
let account = verify_account(block_no, address, state_root);
get_header(block_no);
assert(get_header(block_no).state_root == state_root, "State root does not match");
account
}

0 comments on commit 415467a

Please sign in to comment.