Skip to content

Commit 85a5566

Browse files
committedOct 30, 2024
Incomplete EIP-3607 Implementation Allows Mempool Pollution
1 parent a84ce1c commit 85a5566

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎frame/ethereum/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ impl<T: Config> Pallet<T> {
520520
.and_then(|v| v.with_balance_for(&who))
521521
.map_err(|e| e.0)?;
522522

523+
if !pallet_evm::AccountCodes::<T>::get(origin).is_empty() {
524+
return Err(InvalidTransaction::BadSigner.into());
525+
}
526+
523527
let priority = match (
524528
transaction_data.gas_price,
525529
transaction_data.max_fee_per_gas,

0 commit comments

Comments
 (0)