diff --git a/crates/ethereum-forks/src/hardfork.rs b/crates/ethereum-forks/src/hardfork.rs index dcc54243ba..2b4a742432 100644 --- a/crates/ethereum-forks/src/hardfork.rs +++ b/crates/ethereum-forks/src/hardfork.rs @@ -88,11 +88,16 @@ impl Hardfork { } } - /// Retrieves the activation timestamp for the specified hardfork on the Ethereum mainnet. - pub fn mainnet_activation_timestamp(&self, chain: Chain) -> Option { + /// Retrieves the activation timestamp for the specified hardfork on the given chain. + pub fn activation_timestamp(&self, chain: Chain) -> Option { if chain != Chain::mainnet() { return None; } + self.mainnet_activation_timestamp() + } + + /// Retrieves the activation timestamp for the specified hardfork on the Ethereum mainnet. + pub fn mainnet_activation_timestamp(&self) -> Option { match self { Hardfork::Frontier => Some(1438226773), Hardfork::Homestead => Some(1457938193),