Skip to content

Commit

Permalink
Merge pull request onflow#6513 from onflow/nft-getids
Browse files Browse the repository at this point in the history
Adds `getIDs()` to NFT program recovery
  • Loading branch information
joshuahannan authored Oct 3, 2024
2 parents 78daa76 + 76678dc commit 3beefb8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fvm/environment/program_recovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ func RecoveredNonFungibleTokenCode(nonFungibleTokenAddress common.Address, contr
%[2]s.recoveryPanic("Collection.deposit")
}
access(all)
view fun getIDs(): [UInt64] {
return self.ownedNFTs.keys
}
access(all)
view fun getSupportedNFTTypes(): {Type: Bool} {
%[2]s.recoveryPanic("Collection.getSupportedNFTTypes")
Expand Down

0 comments on commit 3beefb8

Please sign in to comment.