diff --git a/examples/gno.land/p/demo/grc/grc721/basic_nft.gno b/examples/gno.land/p/demo/grc/grc721/basic_nft.gno index 412751405b2..43493b07bd5 100644 --- a/examples/gno.land/p/demo/grc/grc721/basic_nft.gno +++ b/examples/gno.land/p/demo/grc/grc721/basic_nft.gno @@ -71,8 +71,7 @@ func (s *basicNFT) TokenURI(tid TokenID) (string, error) { func (s *basicNFT) SetTokenURI(tid TokenID, tURI TokenURI) (bool, error) { // check for invalid TokenID - owner, found := s.owners.Get(string(tid)) - if !found { + if !s.exists() { return false, ErrInvalidTokenId }