From a87cac724748954ef9f8b98a68d8e6b218fc3088 Mon Sep 17 00:00:00 2001 From: Mikhail Wall Date: Wed, 10 Jul 2024 17:19:43 +0200 Subject: [PATCH] fix: fixed time --- x/contracts/txmonitor/eth_helper.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/x/contracts/txmonitor/eth_helper.go b/x/contracts/txmonitor/eth_helper.go index 95d40ed7f..c458f8512 100644 --- a/x/contracts/txmonitor/eth_helper.go +++ b/x/contracts/txmonitor/eth_helper.go @@ -3,7 +3,6 @@ package txmonitor import ( "context" "log/slog" - "time" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" @@ -115,9 +114,7 @@ func (e *evmHelper) BatchReceipts(ctx context.Context, txHashes []common.Hash) ( } } - var receipts []Result - - receipts = make([]Result, len(batch)) + receipts := make([]Result, len(batch)) for i, elem := range batch { e.logger.Debug("Processing batch element", "index", i, "result", elem.Result, "error", elem.Error) receipts[i].Receipt = elem.Result.(*types.Receipt)