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

View file

@ -135,6 +135,9 @@ func (args *TransactionArgs) setDefaults(ctx context.Context, b Backend, config
if args.BlobHashes != nil {
return errors.New(`missing "to" in blob transaction`)
}
if args.AuthorizationList != nil {
return errors.New(`missing "to" in set code transaction`)
}
if len(args.data()) == 0 {
return errors.New(`contract creation without any data provided`)
}