Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable having more then one subnft of a given type #219

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
bjartek marked this conversation as resolved.
Show resolved Hide resolved
}
}

Expand Down
Loading