internal: SetCodeTx tx.To must not be nil (#35094)

This commit is contained in:
cui 2026-06-01 10:56:05 +08:00 committed by GitHub
parent b71f750916
commit ff45d1dd7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,6 +138,9 @@ func (args *TransactionArgs) setDefaults(ctx context.Context, b Backend, config
if len(args.data()) == 0 { if len(args.data()) == 0 {
return errors.New(`contract creation without any data provided`) return errors.New(`contract creation without any data provided`)
} }
if len(args.AuthorizationList) > 0 {
return errors.New(`authorizationList provided for contract creation, but "to" field is missing`)
}
} }
if args.Gas == nil { if args.Gas == nil {