Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hashcashier committed Feb 5, 2024
1 parent 850e44b commit 6e93b09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testing/ef-tests/tests/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,15 @@ fn evm(
block.withdrawals.unwrap_or_default(),
post_state,
);
let input_state_input_hash = input.state_input.hash();

let output = EthereumStrategy::build_from(&chain_spec, input).unwrap();

let BlockBuildOutput::SUCCESS {
hash: new_block_hash,
head: new_block_head,
state: new_block_state,
state_input_hash,
} = output
else {
panic!("Invalid block")
Expand All @@ -104,5 +106,6 @@ fn evm(
// the headers should match
assert_eq!(new_block_head, expected_header);
assert_eq!(new_block_hash, expected_header.hash());
assert_eq!(input_state_input_hash, state_input_hash);
}
}

0 comments on commit 6e93b09

Please sign in to comment.