Skip to content

Commit

Permalink
cherrypick commits from PR: #6513 (#6530)
Browse files Browse the repository at this point in the history
* add getIDs to program recover

* fix formatting

---------

Co-authored-by: Josh Hannan <hannanjoshua19@gmail.com>
  • Loading branch information
vishalchangrani and joshuahannan authored Oct 3, 2024
1 parent c0377f2 commit fd23598
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 fd23598

Please sign in to comment.