Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions crates/evm/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ use alloy_primitives::{
};
use core::fmt::Debug;
use revm::{
context::LocalContextTr,
handler::{EthPrecompiles, PrecompileProvider},
interpreter::{CallInput, Gas, InputsImpl, InstructionResult, InterpreterResult},
precompile::{PrecompileError, PrecompileFn, PrecompileId, PrecompileResult, Precompiles},
Context, Journal,
Context,
};

/// A mapping of precompile contracts that can be either static (builtin) or dynamic.
Expand Down Expand Up @@ -346,12 +345,15 @@ impl core::fmt::Debug for PrecompilesMap {
}
}

impl<BlockEnv, TxEnv, CfgEnv, DB, Chain>
PrecompileProvider<Context<BlockEnv, TxEnv, CfgEnv, DB, Journal<DB>, Chain>> for PrecompilesMap
impl<BlockEnv, TxEnv, CfgEnv, DB, Journal, Chain, Local>
PrecompileProvider<Context<BlockEnv, TxEnv, CfgEnv, DB, Journal, Chain, Local>>
for PrecompilesMap
where
BlockEnv: revm::context::Block,
TxEnv: revm::context::Transaction,
CfgEnv: revm::context::Cfg,
Journal: revm::context::JournalTr<Database = DB> + Debug,
Local: revm::context::LocalContextTr,
DB: Database,
{
type Output = InterpreterResult;
Expand All @@ -362,7 +364,7 @@ where

fn run(
&mut self,
context: &mut Context<BlockEnv, TxEnv, CfgEnv, DB, Journal<DB>, Chain>,
context: &mut Context<BlockEnv, TxEnv, CfgEnv, DB, Journal, Chain, Local>,
address: &Address,
inputs: &InputsImpl,
_is_static: bool,
Expand Down
Loading