mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove fill_ APIs (#13970)
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user