mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 07:37:20 +00:00
signer/core/apitypes: require blob txs to have tx.to set (#32197)
Check the `to` address before building the blob tx. --------- Co-authored-by: jwasinger <j-wasinger@hotmail.com>
This commit is contained in:
parent
b992b105ef
commit
055e1e6291
1 changed files with 3 additions and 0 deletions
|
|
@ -150,6 +150,9 @@ func (args *SendTxArgs) ToTransaction() (*types.Transaction, error) {
|
|||
if args.AccessList != nil {
|
||||
al = *args.AccessList
|
||||
}
|
||||
if to == nil {
|
||||
return nil, fmt.Errorf("transaction recipient must be set for blob transactions")
|
||||
}
|
||||
data = &types.BlobTx{
|
||||
To: *to,
|
||||
ChainID: uint256.MustFromBig((*big.Int)(args.ChainID)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue