Skip to content

Commit

Permalink
Add token uri in snake_case
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Sep 6, 2024
1 parent e95c4c0 commit 45c62f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/metadata/filler.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const (
entrypointDecimals = "decimals"
entrypointTokenUri = "tokenURI"
entrypointTokenUriSmall = "tokenUri"
entrypointTokenUriSnake = "token_uri"
entrypointUri = "uri"
entrypointGetImplementation = "get_implementation"
)
Expand Down Expand Up @@ -586,7 +587,7 @@ func (f Filler) getDecimals(ctx context.Context, address data.Felt, selector str

func (f Filler) getUriSelector(schema abi.JsonSchema) (selector string, funcSchema abi.JsonSchemaFunction, err error) {
for _, e := range []string{
entrypointTokenUri, entrypointUri, entrypointTokenUriSmall,
entrypointTokenUri, entrypointUri, entrypointTokenUriSmall, entrypointTokenUriSnake,
} {
selector, funcSchema, err = f.getSelectorByName(schema, e)
if err == nil {
Expand Down

0 comments on commit 45c62f0

Please sign in to comment.