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