mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
internal/ethapi: check to address in set code transaction
This commit is contained in:
parent
934a0091fa
commit
6c8e20ab76
1 changed files with 3 additions and 0 deletions
|
|
@ -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`)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue