Skip to content

Commit

Permalink
fix: convert SpecId::Cancun to cancun precompile id (#4675)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Sep 19, 2023
1 parent ad10a17 commit 24d7bde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rpc/rpc/src/eth/revm_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ pub(crate) fn get_precompiles(spec_id: &SpecId) -> Vec<reth_primitives::H160> {
SpecId::ARROW_GLACIER |
SpecId::GRAY_GLACIER |
SpecId::MERGE |
SpecId::SHANGHAI |
SpecId::CANCUN => PrecompilesSpecId::BERLIN,
SpecId::SHANGHAI => PrecompilesSpecId::BERLIN,
SpecId::CANCUN => PrecompilesSpecId::CANCUN,
SpecId::LATEST => PrecompilesSpecId::LATEST,
};
Precompiles::new(spec).addresses().into_iter().map(Address::from).collect()
Expand Down

0 comments on commit 24d7bde

Please sign in to comment.