diff --git a/etherlink/kernel_latest/kernel/src/apply.rs b/etherlink/kernel_latest/kernel/src/apply.rs index c0f0e2906c47d227595b542f7b78c584bd511f81..7451a156aa4a23fbd5326d125f4d5fe72acb4401 100644 --- a/etherlink/kernel_latest/kernel/src/apply.rs +++ b/etherlink/kernel_latest/kernel/src/apply.rs @@ -267,10 +267,14 @@ fn is_valid_ethereum_transaction_common( return Ok(Validity::InvalidPrePay); } - // The sender does not have code, see EIP3607. - if code_exists { - log!(host, Benchmarking, "Transaction status: ERROR_CODE."); - return Ok(Validity::InvalidCode); + // TODO: Whenever the configuration/spec id of our EVM + // is properly propagated to REVM, re-adjust this condition. + if let Ok(false) = is_revm_enabled(host) { + // The sender does not have code, see EIP3607. + if code_exists { + log!(host, Benchmarking, "Transaction status: ERROR_CODE."); + return Ok(Validity::InvalidCode); + } } // check that enough gas is provided to cover fees