Skip to content

Commit

Permalink
client queries: add ERC-721 token type
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Jun 24, 2023
1 parent 2a1a196 commit c6f1afb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/client/queries/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ const (
tokens.total_supply,
CASE -- NOTE: There are two 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)
END AS type,
holders.cnt AS num_holders
Expand Down

0 comments on commit c6f1afb

Please sign in to comment.