Skip to content

Commit

Permalink
fix(executor): prevent eip-7702 txs pre-isthmus
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Jan 28, 2025
1 parent b94fb7a commit 6b69eb4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions crates/executor/src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ where
return Err(ExecutorError::BlockGasLimitExceeded);
}

// Prevent EIP-7702 transactions pre-isthmus hardfork.
if !is_isthmus && matches!(transaction, OpTxEnvelope::Eip7702(_)) {
return Err(ExecutorError::UnsupportedTransactionType(transaction.tx_type() as u8));
}

// Modify the transaction environment with the current transaction.
evm = evm
.modify()
Expand Down

0 comments on commit 6b69eb4

Please sign in to comment.