mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore(evm): remove unneeded lifetimes (#9583)
This commit is contained in:
@ -42,17 +42,14 @@ pub trait ConfigureEvm: ConfigureEvmEnv {
|
||||
/// This does not automatically configure the EVM with [`ConfigureEvmEnv`] methods. It is up to
|
||||
/// the caller to call an appropriate method to fill the transaction and block environment
|
||||
/// before executing any transactions using the provided EVM.
|
||||
fn evm<'a, DB: Database + 'a>(
|
||||
&'a self,
|
||||
db: DB,
|
||||
) -> Evm<'a, Self::DefaultExternalContext<'a>, DB>;
|
||||
fn evm<'a, DB: Database + 'a>(&self, db: DB) -> Evm<'a, Self::DefaultExternalContext<'a>, DB>;
|
||||
|
||||
/// Returns a new EVM with the given database configured with the given environment settings,
|
||||
/// including the spec id.
|
||||
///
|
||||
/// This will preserve any handler modifications
|
||||
fn evm_with_env<'a, DB: Database + 'a>(
|
||||
&'a self,
|
||||
&self,
|
||||
db: DB,
|
||||
env: EnvWithHandlerCfg,
|
||||
) -> Evm<'a, Self::DefaultExternalContext<'a>, DB> {
|
||||
@ -69,13 +66,13 @@ pub trait ConfigureEvm: ConfigureEvmEnv {
|
||||
///
|
||||
/// This will preserve any handler modifications
|
||||
fn evm_with_env_and_inspector<'a, DB, I>(
|
||||
&'a self,
|
||||
&self,
|
||||
db: DB,
|
||||
env: EnvWithHandlerCfg,
|
||||
inspector: I,
|
||||
) -> Evm<'a, I, DB>
|
||||
where
|
||||
DB: Database + 'a,
|
||||
DB: Database,
|
||||
I: GetInspector<DB>,
|
||||
{
|
||||
let mut evm = self.evm_with_inspector(db, inspector);
|
||||
@ -89,7 +86,7 @@ pub trait ConfigureEvm: ConfigureEvmEnv {
|
||||
/// Caution: This does not automatically configure the EVM with [`ConfigureEvmEnv`] methods. It
|
||||
/// is up to the caller to call an appropriate method to fill the transaction and block
|
||||
/// environment before executing any transactions using the provided EVM.
|
||||
fn evm_with_inspector<'a, DB, I>(&'a self, db: DB, inspector: I) -> Evm<'a, I, DB>
|
||||
fn evm_with_inspector<'a, DB, I>(&self, db: DB, inspector: I) -> Evm<'a, I, DB>
|
||||
where
|
||||
DB: Database + 'a,
|
||||
I: GetInspector<DB>,
|
||||
|
||||
Reference in New Issue
Block a user