Skip to content

Commit

Permalink
fix getLenght
Browse files Browse the repository at this point in the history
  • Loading branch information
loic1 committed Apr 11, 2024
1 parent d888633 commit 43865c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pds/contracts/PackNFT.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ access(all) contract PackNFT: NonFungibleToken, IPackNFT {
/// Return the amount of NFTs stored in the collection.
///
access(all) view fun getLength(): Int {
return self.ownedNFTs.keys.length
return self.ownedNFTs.length
}

/// Return a list of NFT types that this receiver accepts.
Expand Down
2 changes: 1 addition & 1 deletion pds/contracts/PackNFT_AllDay.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ access(all) contract PackNFT: NonFungibleToken, IPackNFT {
/// Return the amount of NFTs stored in the collection.
///
access(all) view fun getLength(): Int {
return self.ownedNFTs.keys.length
return self.ownedNFTs.length
}

/// Return a list of NFT types that this receiver accepts.
Expand Down

0 comments on commit 43865c9

Please sign in to comment.