From 022105443c48b0ab99133e79100aec5c0dc860c4 Mon Sep 17 00:00:00 2001 From: maskpp Date: Sun, 13 Jul 2025 15:51:13 +0800 Subject: [PATCH] the to address shouldn't be null in blob tx --- signer/core/apitypes/types.go | 3 +++ 1 file changed, 3 insertions(+) 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)),