From 415467a80a27d01d71f1ac431d4d1a0c4c58f313 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 16 Feb 2024 10:54:45 +0100 Subject: [PATCH] Veirfy header state root --- ethereum_history_api/circuits/lib/src/main.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum_history_api/circuits/lib/src/main.nr b/ethereum_history_api/circuits/lib/src/main.nr index 04358e9ad..ee0327e48 100644 --- a/ethereum_history_api/circuits/lib/src/main.nr +++ b/ethereum_history_api/circuits/lib/src/main.nr @@ -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 }