Skip to content

Commit

Permalink
enable having more then one subnft of a given type
Browse files Browse the repository at this point in the history
  • Loading branch information
bjartek committed May 13, 2024
1 parent f6c99e9 commit dc75db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/NonFungibleToken.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ access(all) contract interface NonFungibleToken: ViewResolver {

/// Gets all the NFTs that this NFT directly owns
/// @return A dictionary of all subNFTS keyed by type
access(all) view fun getAvailableSubNFTS(): {Type: UInt64} {
access(all) view fun getAvailableSubNFTS(): {Type: [UInt64]} {
return {}
}

Expand Down Expand Up @@ -225,7 +225,7 @@ access(all) contract interface NonFungibleToken: ViewResolver {
access(all) view fun borrowNFT(_ id: UInt64): &{NonFungibleToken.NFT}? {
post {
(result == nil) || (result?.id == id):
"Cannot borrow NFT reference: The ID of the returned reference does not match the ID that was specified"
"Cannot borrow NFT reference: The ID of the returned reference does not match the ID that was specified"
}
}

Expand Down

0 comments on commit dc75db7

Please sign in to comment.