Skip to content

Commit

Permalink
generate assets
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahannan committed Jan 25, 2024
1 parent 6d66d29 commit 2e80d9b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
6 changes: 3 additions & 3 deletions contracts/utility/NonFungibleToken.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ access(all) contract interface NonFungibleToken: ViewResolver {
/// The event makes it so that third-party indexers can monitor the events
/// and query the updated metadata from the owners' collections.
///
access(all) event Updated(id: UInt64, uuid: UInt64, owner: Address?, type: String)
access(all) view fun emitNFTUpdated(_ nftRef: auth(Update | Owner) &{NonFungibleToken.NFT})
access(all) event Updated(type: String, id: UInt64, uuid: UInt64, owner: Address?)
access(contract) view fun emitNFTUpdated(_ nftRef: auth(Update | Owner) &{NonFungibleToken.NFT})
{
emit Updated(id: nftRef.id, uuid: nftRef.uuid, owner: nftRef.owner?.address, type: nftRef.getType().identifier)
emit Updated(type: nftRef.getType().identifier, id: nftRef.id, uuid: nftRef.uuid, owner: nftRef.owner?.address)
}


Expand Down
Loading

0 comments on commit 2e80d9b

Please sign in to comment.