diff --git a/src/ethereum/prague/fork.py b/src/ethereum/prague/fork.py index a4d8e2b8c0..141ef67acb 100644 --- a/src/ethereum/prague/fork.py +++ b/src/ethereum/prague/fork.py @@ -430,6 +430,10 @@ def check_transaction( max_gas_fee = tx.gas * tx.gas_price if isinstance(tx, BlobTransaction): + if not isinstance(tx.to, Address): + raise InvalidBlock + if len(tx.blob_versioned_hashes) == 0: + raise InvalidBlock for blob_versioned_hash in tx.blob_versioned_hashes: if blob_versioned_hash[0:1] != VERSIONED_HASH_VERSION_KZG: raise InvalidBlock