diff --git a/signer/core/apitypes/types.go b/signer/core/apitypes/types.go index b8b96bef92..5ed9710f59 100644 --- a/signer/core/apitypes/types.go +++ b/signer/core/apitypes/types.go @@ -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("the to address shouldn't be null in blob transaction") + } data = &types.BlobTx{ To: *to, ChainID: uint256.MustFromBig((*big.Int)(args.ChainID)),