Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew7234 committed Dec 8, 2023
1 parent 1194890 commit c6824be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions analyzer/evmabibackfill/evm_abi_backfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (p *processor) ProcessItem(ctx context.Context, batch *storage.QueryBatch,
return fmt.Errorf("error unmarshalling abi: %w", err)
}
// Parse data
if item.Event != nil {
if item.Event != nil { //nolint:nestif // has complex nested blocks (complexity: 12) (nestif)
abiEvent, abiEventArgs, err := abiparse.ParseEvent(item.Event.EventBody.Topics, item.Event.EventBody.Data, &contractAbi)
if err != nil {
queueIncompatibleEventUpdate(batch, p.runtime, item.Event.Round, item.Event.TxIndex)
Expand All @@ -197,7 +197,6 @@ func (p *processor) ProcessItem(ctx context.Context, batch *storage.QueryBatch,
abiEvent.ID,
)
} else if item.Tx != nil {
p.logger.Info("parsing tx", "txerr", item.Tx.TxRevertReason, "txhash", item.Tx.TxHash)
method, abiTxArgs, err := abiparse.ParseData(item.Tx.TxData, &contractAbi)
if err != nil {
queueIncompatibleTxUpdate(batch, p.runtime, item.Tx.TxHash)
Expand Down

0 comments on commit c6824be

Please sign in to comment.