Skip to content

Commit

Permalink
update NFT standard
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Jun 5, 2024
1 parent c9f492f commit e41d781
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions cadence/contracts/standards/NonFungibleToken.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ The interface that all Non-Fungible Token contracts should conform to.
If a user wants to deploy a new NFT contract, their contract should implement
The types defined here
/// Contributors (please add to this list if you contribute!):
/// - Joshua Hannan - https://github.com/joshuahannan
/// - Bastian Müller - https://twitter.com/turbolent
/// - Dete Shirley - https://twitter.com/dete73
/// - Bjarte Karlsen - https://twitter.com/0xBjartek
/// - Austin Kline - https://twitter.com/austin_flowty
/// - Giovanni Sanchez - https://twitter.com/gio_incognito
/// - Deniz Edincik - https://twitter.com/bluesign
///
/// Repo reference: https://github.com/onflow/flow-nft
## `NFT` resource interface
The core resource type that represents an NFT in the smart contract.
Expand Down Expand Up @@ -105,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 @@ -238,4 +249,4 @@ access(all) contract interface NonFungibleToken: ViewResolver {
result.getIDs().length == 0: "The created collection must be empty!"
}
}
}
}

0 comments on commit e41d781

Please sign in to comment.