-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(p/grc721): add SetTokenURI to
IGRC721
(#1309)
The current grc721 implementation lacks the ability to set the tokenURI metadata for an NFT. There are placheolders inside the struct, but the actual setter was not written. This PR add the following functionality in the `grc` folder inside the `p` folder: - new type grc721 interface for `TokenURI` on top of the existing `TokenID` - new error type in `errors.gno` - SetTokenURI() implementation in `basic_nft.gno` - new test added to `basic_nft_test.gno` AFAIK there are no breaking changes in this PR, tests are passing locally. Let me know any issues. --------- Co-authored-by: Morgan <[email protected]>
- Loading branch information
1 parent
d10aa9b
commit f2034b1
Showing
4 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters