This commit is contained in:
cui 2026-07-17 21:53:00 -07:00 committed by GitHub
commit f794fe55c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -474,8 +474,8 @@ func (tx *Transaction) UnmarshalJSON(input []byte) error {
if dec.AccessList != nil { if dec.AccessList != nil {
itx.AccessList = *dec.AccessList itx.AccessList = *dec.AccessList
} }
if dec.AuthorizationList == nil { if len(dec.AuthorizationList) == 0 {
return errors.New("missing required field 'authorizationList' in transaction") return errors.New("'authorizationList' must contain at least one authorization")
} }
itx.AuthList = dec.AuthorizationList itx.AuthList = dec.AuthorizationList