Skip to content

Commit

Permalink
feat: allow 7702 receipts after Isthmus active
Browse files Browse the repository at this point in the history
  • Loading branch information
meyer9 committed Jan 28, 2025
1 parent 4b00849 commit d6ff4fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/executor/src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ where
base.build()
};

let is_isthmus = self.config.is_isthmus_active(payload.payload_attributes.timestamp);

// Execute the transactions in the payload.
let decoded_txs = transactions
.iter()
Expand Down Expand Up @@ -235,8 +237,8 @@ where
.flatten(),
);
// Ensure the receipt is not an EIP-7702 receipt.
if matches!(receipt, OpReceiptEnvelope::Eip7702(_)) {
panic!("EIP-7702 receipts are not supported by the fault proof program");
if matches!(receipt, OpReceiptEnvelope::Eip7702(_)) && !is_isthmus {
panic!("EIP-7702 receipts are not supported by the fault proof program before Isthmus");
}
receipts.push(receipt);
}
Expand Down

0 comments on commit d6ff4fe

Please sign in to comment.