Skip to content

Commit

Permalink
fix(): add missing hardforks (#5399)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evalir authored Jul 15, 2023
1 parent aaf2a1b commit 56adbe4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion evm/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,17 @@ pub fn halt_to_instruction_result(
/// Converts an `EvmVersion` into a `SpecId`
pub fn evm_spec(evm: &EvmVersion) -> SpecId {
match evm {
EvmVersion::Homestead => SpecId::HOMESTEAD,
EvmVersion::TangerineWhistle => SpecId::TANGERINE,
EvmVersion::SpuriousDragon => SpecId::SPURIOUS_DRAGON,
EvmVersion::Byzantium => SpecId::BYZANTIUM,
EvmVersion::Constantinople => SpecId::CONSTANTINOPLE,
EvmVersion::Petersburg => SpecId::PETERSBURG,
EvmVersion::Istanbul => SpecId::ISTANBUL,
EvmVersion::Berlin => SpecId::BERLIN,
EvmVersion::London => SpecId::LONDON,
EvmVersion::Paris => SpecId::MERGE,
EvmVersion::Shanghai => SpecId::SHANGHAI,
_ => panic!("Unsupported EVM version"),
}
}

Expand Down

0 comments on commit 56adbe4

Please sign in to comment.