mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-04 22:18:40 +00:00
internal: SetCodeTx tx.To must not be nil (#35094)
This commit is contained in:
parent
b71f750916
commit
ff45d1dd7b
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue