Skip to content

Commit

Permalink
fix: don't die when contracts remove their name
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Nov 30, 2024
1 parent ec2cf3f commit ab93bfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transformers/token_transfers.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ func tokenTransfers(blockETL *models.BlockETL) {
// Token Contract Name
tokenContractName, err := service.IconNodeServiceGetTokenContractName(tokenContractAddress)
if err != nil {
zap.S().Fatal(err)
// It is possible for a contract to remove its name and thus we'll just
// ignore these events.
return
}

// Token Contract Symbol
Expand Down

0 comments on commit ab93bfe

Please sign in to comment.