diff --git a/contracts/nft/UniversalCollection.cdc b/contracts/nft/UniversalCollection.cdc index d65b452..4aec8ab 100644 --- a/contracts/nft/UniversalCollection.cdc +++ b/contracts/nft/UniversalCollection.cdc @@ -26,6 +26,10 @@ access(all) contract UniversalCollection { return &self.ownedNFTs[id] } + access(NonFungibleToken.Withdraw) fun withdraw(withdrawID: UInt64): @{NonFungibleToken.NFT} { + return <- self.ownedNFTs.remove(key: withdrawID)! + } + init (nftType: Type) { self.ownedNFTs <- {} self.nftType = nftType