From 3456bd286baeec679fb495303d20e02fa8715005 Mon Sep 17 00:00:00 2001 From: sha3n Date: Tue, 27 Jun 2023 13:26:23 +0800 Subject: [PATCH] [fix]: fix sigma MNT-26 --- mt-batcher/services/restorer/handle.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mt-batcher/services/restorer/handle.go b/mt-batcher/services/restorer/handle.go index 024350ed9..7cef026b5 100644 --- a/mt-batcher/services/restorer/handle.go +++ b/mt-batcher/services/restorer/handle.go @@ -148,6 +148,10 @@ func (s *DaService) GetDtlBatchTransactionByDataStoreId(c gecho.Context) error { for i := 0; i < len(newBatchTxn); i++ { l2Tx := new(types.Transaction) txDecodeMetaData := new(eigenda.TransactionMeta) + if newBatchTxn[i].TxMeta == nil { + log.Error("Batch tx metadata shouldn't be nil") + continue + } err = json.Unmarshal(newBatchTxn[i].TxMeta, txDecodeMetaData) if err != nil { log.Error("Unmarshal json fail")