mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rm match arm for op deposit (#7324)
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user