diff --git a/crates/evm/src/evm.rs b/crates/evm/src/evm.rs index d913d19..5f72cc2 100644 --- a/crates/evm/src/evm.rs +++ b/crates/evm/src/evm.rs @@ -34,7 +34,7 @@ pub trait Evm { /// Halt reason. Enum over all possible reasons for halting the execution. When execution halts, /// it means that transaction is valid, however, it's execution was interrupted (e.g because of /// running out of gas or overflowing stack). - type HaltReason: HaltReasonTr + Send + Sync; + type HaltReason: HaltReasonTr + Send + Sync + 'static; /// Reference to [`BlockEnv`]. fn block(&self) -> &BlockEnv; @@ -87,7 +87,7 @@ pub trait EvmFactory { /// EVM error. See [`Evm::Error`]. type Error: EvmError; /// Halt reason. See [`Evm::HaltReason`]. - type HaltReason: HaltReasonTr + Send + Sync; + type HaltReason: HaltReasonTr + Send + Sync + 'static; /// Creates a new instance of an EVM. fn create_evm(&self, db: DB, input: Input) -> Self::Evm;