mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
the to address shouldn't be null in blob tx
This commit is contained in:
parent
355228b011
commit
022105443c
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("the to address shouldn't be null in blob transaction")
|
||||||
|
}
|
||||||
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