From 9fb73d6a51f85ba6c861083719faee851f58cb99 Mon Sep 17 00:00:00 2001 From: irreverentsimplicity <134286683+irreverentsimplicity@users.noreply.github.com> Date: Fri, 17 Nov 2023 01:29:26 +0000 Subject: [PATCH] Update examples/gno.land/p/demo/grc/grc721/basic_nft.gno Co-authored-by: Morgan --- examples/gno.land/p/demo/grc/grc721/basic_nft.gno | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }