internal/ethapi: check to address in set code transaction

This commit is contained in:
Weixie Cui 2026-05-13 00:21:30 +08:00
parent 934a0091fa
commit 6c8e20ab76

View file

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