Skip to content

Commit

Permalink
fix: fixed time
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed Jul 10, 2024
1 parent 74de82e commit a87cac7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions x/contracts/txmonitor/eth_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package txmonitor
import (
"context"
"log/slog"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a87cac7

Please sign in to comment.