Skip to content

Commit

Permalink
Merge pull request #35 from taikoxyz/izumi
Browse files Browse the repository at this point in the history
fix: nil check
  • Loading branch information
bennettyong authored Aug 18, 2024
2 parents 73ced22 + 28bf846 commit 71135c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion adapters/projects/izumi/transfer_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ func (indexer *TransferIndexer) IndexLogs(ctx context.Context, chainID *big.Int,
if err != nil {
return nil, err
}
result = append(result, *transferData)
if transferData != nil {
result = append(result, *transferData)
}
}
return result, nil
}
Expand Down
4 changes: 3 additions & 1 deletion adapters/projects/ritsu/transfer_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ func (indexer *TransferIndexer) IndexLogs(ctx context.Context, chainID *big.Int,
if err != nil {
return nil, err
}
result = append(result, *transferData)
if transferData != nil {
result = append(result, *transferData)
}
}
return result, nil
}
Expand Down

0 comments on commit 71135c6

Please sign in to comment.