From 7835a71dae92dd5f020f5d9ba05b5354c7278582 Mon Sep 17 00:00:00 2001 From: cui Date: Thu, 4 Jun 2026 05:51:27 +0800 Subject: [PATCH] core/types: fix length of BlobVersionedHashed can not be zero (#35065) check the len of BlobVersionedHashed in blob tx. --- core/types/transaction_marshalling.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/types/transaction_marshalling.go b/core/types/transaction_marshalling.go index f76d4b92e9..e3950b2a76 100644 --- a/core/types/transaction_marshalling.go +++ b/core/types/transaction_marshalling.go @@ -396,6 +396,9 @@ func (tx *Transaction) UnmarshalJSON(input []byte) error { if dec.BlobVersionedHashes == nil { return errors.New("missing required field 'blobVersionedHashes' in transaction") } + if len(dec.BlobVersionedHashes) == 0 { + return errors.New("'blobVersionedHashes' must contain at least one hash") + } itx.BlobHashes = dec.BlobVersionedHashes // signature R