From 45c62f0cdfcb82d44264db3c8760fc12e4788dd2 Mon Sep 17 00:00:00 2001 From: Artem Date: Fri, 6 Sep 2024 12:23:11 +0300 Subject: [PATCH] Add token uri in snake_case --- cmd/metadata/filler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/metadata/filler.go b/cmd/metadata/filler.go index 63cae72..2ae24d8 100644 --- a/cmd/metadata/filler.go +++ b/cmd/metadata/filler.go @@ -31,6 +31,7 @@ const ( entrypointDecimals = "decimals" entrypointTokenUri = "tokenURI" entrypointTokenUriSmall = "tokenUri" + entrypointTokenUriSnake = "token_uri" entrypointUri = "uri" entrypointGetImplementation = "get_implementation" ) @@ -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 {