Skip to content

Commit

Permalink
nit: make unknown token_type null for events
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew7234 committed Jul 25, 2023
1 parent 4ee5aad commit 1ff636c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/client/queries/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ const (
CASE -- NOTE: There are three queries that use this CASE via copy-paste; edit both if changing.
WHEN tokens.token_type = 20 THEN 'ERC20'
WHEN tokens.token_type = 721 THEN 'ERC721'
ELSE 'unexpected_other_type' -- Our openapi spec doesn't allow us to output this, but better this than a null value (which causes nil dereference)
ELSE NULL -- Our openapi spec doesn't allow us to output this, but better this than a null value (which causes nil dereference)
END AS token_type,
tokens.decimals
FROM chain.runtime_events as evs
Expand Down

0 comments on commit 1ff636c

Please sign in to comment.