feat: add Header AT to EthChainSpec (#13046)

This commit is contained in:
Arsenii Kulikov
2024-12-02 04:56:00 +04:00
committed by GitHub
parent 7f88e62781
commit 3f93f35c20
7 changed files with 39 additions and 24 deletions

View File

@ -253,6 +253,8 @@ pub fn decode_holocene_1559_params(extra_data: Bytes) -> Result<(u32, u32), Deco
}
impl EthChainSpec for OpChainSpec {
type Header = Header;
fn chain(&self) -> alloy_chains::Chain {
self.inner.chain()
}
@ -281,7 +283,7 @@ impl EthChainSpec for OpChainSpec {
Box::new(ChainSpec::display_hardforks(self))
}
fn genesis_header(&self) -> &Header {
fn genesis_header(&self) -> &Self::Header {
self.inner.genesis_header()
}