diff --git a/src/apps/chifra/pkg/monitor/monitor_freshen.go b/src/apps/chifra/pkg/monitor/monitor_freshen.go index f25099d60a..b393db15eb 100644 --- a/src/apps/chifra/pkg/monitor/monitor_freshen.go +++ b/src/apps/chifra/pkg/monitor/monitor_freshen.go @@ -386,9 +386,11 @@ func getAppearances(addrStr string, lines []string, lastVisited uint32, found in if !strings.HasPrefix(lines[idx], addrStr) { break } + strippedBn := strings.TrimLeft(lines[idx][startOfBlockNum:endOfBlockNum], "0") + strippedTxId := strings.TrimLeft(lines[idx][startOfTxId:endOfTxId], "0") r := types.AppRecord{ - BlockNumber: uint32(base.MustParseUint64(lines[idx][startOfBlockNum:endOfBlockNum])), - TransactionIndex: uint32(base.MustParseUint64(lines[idx][startOfTxId:endOfTxId])), + BlockNumber: uint32(base.MustParseUint64(strippedBn)), + TransactionIndex: uint32(base.MustParseUint64(strippedTxId)), } if r.BlockNumber > lastVisited { results = append(results, r)