Skip to content

Commit

Permalink
Update examples/gno.land/p/demo/grc/grc721/basic_nft.gno
Browse files Browse the repository at this point in the history
Co-authored-by: Morgan <[email protected]>
  • Loading branch information
irreverentsimplicity and thehowl authored Nov 17, 2023
1 parent 9fb73d6 commit d6ec0aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/gno.land/p/demo/grc/grc721/basic_nft.gno
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ func (s *basicNFT) SetTokenURI(tid TokenID, tURI TokenURI) (bool, error) {
// check for the right owner
owner, err := s.OwnerOf(tid)
if err != nil {
return false, err
}
caller := std.PrevRealm().Addr()
if caller != owner {
return false, ErrCallerIsNotOwner
}
s.tokenURIs.Set(string(tid), string(tURI))
Expand Down

0 comments on commit d6ec0aa

Please sign in to comment.