chore: make block field private (#13628)

This commit is contained in:
Matthias Seitz
2025-01-03 16:10:32 +01:00
committed by GitHub
parent 82013f46da
commit dbd4f0c4fe
67 changed files with 317 additions and 291 deletions

View File

@ -42,10 +42,10 @@ where
let timestamp = block.timestamp();
let l1_block_info =
reth_optimism_evm::extract_l1_info(&block.body).map_err(OpEthApiError::from)?;
reth_optimism_evm::extract_l1_info(block.body()).map_err(OpEthApiError::from)?;
return block
.body
.body()
.transactions()
.iter()
.zip(receipts.iter())

View File

@ -41,7 +41,7 @@ where
)))?;
let l1_block_info =
reth_optimism_evm::extract_l1_info(&block.body).map_err(OpEthApiError::from)?;
reth_optimism_evm::extract_l1_info(block.body()).map_err(OpEthApiError::from)?;
Ok(OpReceiptBuilder::new(
&self.inner.eth_api.provider().chain_spec(),