Skip to content

Commit

Permalink
update test_to_revm_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Sep 20, 2023
1 parent 61fdf68 commit b5102ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/revm/revm-primitives/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ mod tests {
use reth_primitives::{ChainSpecBuilder, Head, MAINNET, U256};
#[test]
fn test_to_revm_spec() {
assert_eq!(
revm_spec(&ChainSpecBuilder::mainnet().cancun_activated().build(), Head::default()),
revm::primitives::CANCUN
);
assert_eq!(
revm_spec(&ChainSpecBuilder::mainnet().shanghai_activated().build(), Head::default()),
revm::primitives::SHANGHAI
);
assert_eq!(
revm_spec(&ChainSpecBuilder::mainnet().paris_activated().build(), Head::default()),
revm::primitives::MERGE
Expand Down

0 comments on commit b5102ff

Please sign in to comment.