mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +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 {
|
if args.AccessList != nil {
|
||||||
al = *args.AccessList
|
al = *args.AccessList
|
||||||
}
|
}
|
||||||
|
if to == nil {
|
||||||
|
return nil, fmt.Errorf("transaction recipient must be set for blob transactions")
|
||||||
|
}
|
||||||
data = &types.BlobTx{
|
data = &types.BlobTx{
|
||||||
To: *to,
|
To: *to,
|
||||||
ChainID: uint256.MustFromBig((*big.Int)(args.ChainID)),
|
ChainID: uint256.MustFromBig((*big.Int)(args.ChainID)),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue