Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFT enumeration NEP says nft_total_supply and nft_supply_for_owner should return strings #416

Open
mpeterdev opened this issue Oct 17, 2024 · 1 comment

Comments

@mpeterdev
Copy link

these functions are declared in the contract standards as returning numbers, but the NEP states they should be strings. Perhaps they should be handled as bigints and JSON serialized as strings

@mpeterdev
Copy link
Author

confirmed that the top NFT contracts on Paras return as string

near contract call-function as-read-only nft.goodfortunefelines.near nft_total_supply text-args '' network-config mainnet now

▹▸▹▹▹ Getting a response to a read-only function call ...                                                                                                                       --------------
No logs
--------------
Result:
"1608"
--------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: NEW❗
Development

No branches or pull requests

1 participant