chore: remove fill_ APIs (#13970)

This commit is contained in:
Arsenii Kulikov
2025-01-24 16:35:49 +04:00
committed by GitHub
parent 006eea0c34
commit 7e9d6ae454
11 changed files with 116 additions and 124 deletions

View File

@ -83,7 +83,7 @@ pub trait LoadPendingBlock:
// Note: for the PENDING block we assume it is past the known merge block and
// thus this will not fail when looking up the total
// difficulty value for the blockenv.
let evm_env = self.evm_config().cfg_and_block_env(block.header());
let evm_env = self.evm_config().evm_env(block.header());
return Ok(PendingBlockEnv::new(
evm_env,
@ -102,7 +102,7 @@ pub trait LoadPendingBlock:
let evm_env = self
.evm_config()
.next_cfg_and_block_env(
.next_evm_env(
&latest,
NextBlockEnvAttributes {
timestamp: latest.timestamp() + 12,

View File

@ -230,7 +230,7 @@ pub trait LoadState:
let header =
self.cache().get_header(block_hash).await.map_err(Self::Error::from_eth_err)?;
let evm_env = self.evm_config().cfg_and_block_env(&header);
let evm_env = self.evm_config().evm_env(&header);
Ok((evm_env, block_hash.into()))
}

View File

@ -156,7 +156,7 @@ where
.map_err(BlockError::RlpDecodeRawBlock)
.map_err(Eth::Error::from_eth_err)?;
let evm_env = self.eth_api().evm_config().cfg_and_block_env(block.header());
let evm_env = self.eth_api().evm_config().evm_env(block.header());
// Depending on EIP-2 we need to recover the transactions differently
let senders =