Skip to content

Commit

Permalink
add correct getLength impl
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahannan committed Apr 10, 2024
1 parent f122847 commit cd08f8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/ExampleNFT.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ access(all) contract ExampleNFT: NonFungibleToken {

/// Gets the amount of NFTs stored in the collection
access(all) view fun getLength(): Int {
return self.ownedNFTs.keys.length
return self.ownedNFTs.length
}

access(all) view fun borrowNFT(_ id: UInt64): &{NonFungibleToken.NFT}? {
Expand Down
Loading

0 comments on commit cd08f8b

Please sign in to comment.