Skip to content

Commit

Permalink
chore: add 'static bound to HaltReason
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Feb 19, 2025
1 parent 1ac2157 commit f17bfe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/evm/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -87,7 +87,7 @@ pub trait EvmFactory<Input> {
/// EVM error. See [`Evm::Error`].
type Error<DBError: Error + Send + Sync + 'static>: 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<DB: Database>(&self, db: DB, input: Input) -> Self::Evm<DB, NoOpInspector>;
Expand Down

0 comments on commit f17bfe0

Please sign in to comment.