Skip to content

Commit

Permalink
TRD-573 fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
linhnt3400 committed Sep 12, 2024
1 parent 4989e6e commit 432e8ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/pkg/parser/zxotc/zxotc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestParseEvent(t *testing.T) {
log, err := p.Parse(event, uint64(time.Now().Unix()))
require.NoError(t, err)
require.Equal(t, log[0].(*zxotc.TradeLog).EventHash, p.eventHash)
jsonLog, err := json.Marshal(log)
jsonLog, _ := json.Marshal(log)
t.Log(string(jsonLog))
}

Expand All @@ -91,7 +91,7 @@ func TestParseTxEvent(t *testing.T) {
if log.Topics[0].Hex() == p.eventHash {
tradeLog, err := p.Parse(*log, tx.BlockNumber.Uint64())
require.NoError(t, err)
jsonLog, err := json.Marshal(tradeLog)
jsonLog, _ := json.Marshal(tradeLog)
t.Log(string(jsonLog))
}
}
Expand Down

0 comments on commit 432e8ee

Please sign in to comment.