chore: rm match arm for op deposit (#7324)

This commit is contained in:
Matthias Seitz
2024-03-25 17:19:22 +01:00
committed by GitHub
parent c6abf0ca86
commit c9e326185a

View File

@ -65,6 +65,7 @@ pub fn validate_transaction_regarding_header(
at_timestamp: u64,
base_fee: Option<u64>,
) -> Result<(), ConsensusError> {
#[allow(unreachable_patterns)]
let chain_id = match transaction {
Transaction::Legacy(TxLegacy { chain_id, .. }) => {
// EIP-155: Simple replay attack protection: https://eips.ethereum.org/EIPS/eip-155
@ -120,8 +121,10 @@ pub fn validate_transaction_regarding_header(
Some(*chain_id)
}
#[cfg(feature = "optimism")]
Transaction::Deposit(_) => None,
_ => {
// Op Deposit
None
}
};
if let Some(chain_id) = chain_id {
if chain_id != chain_spec.chain().id() {