From 4e576483d44f192ee73203073f749093c91c2e12 Mon Sep 17 00:00:00 2001 From: Andrii Rozinko Date: Thu, 5 Dec 2024 15:21:42 +0200 Subject: [PATCH] Fix check for airdao txs --- crates/ethcore/src/machine/impls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ethcore/src/machine/impls.rs b/crates/ethcore/src/machine/impls.rs index c5a443a822..1a5f8020ed 100644 --- a/crates/ethcore/src/machine/impls.rs +++ b/crates/ethcore/src/machine/impls.rs @@ -398,7 +398,7 @@ impl EthereumMachine { //Check if transaction has fees specific data let has_fees_data = match t.as_unsigned() { TypedTransaction::Legacy(tx) => { - tx.data == vec![0x57, 0xc3, 0xc9, 0xfb] + tx.data.len() == 132 && tx.data[0] == 0x57 && tx.data[1] == 0xc3 && tx.data[2] == 0xc9 && tx.data[3] == 0xfb } _ => false, };