-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started here. I was able to cast script result into UInt64 to get the first nftID and `get_editions_flowty_wrapped` test passed. There is probably a better way to do this but pushing what I have for now --------- Co-authored-by: ash <[email protected]>
- Loading branch information
1 parent
35a5084
commit ec46a37
Showing
2 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import "NonFungibleToken" | ||
|
||
import "FlowtyWrapped" | ||
|
||
pub fun main(addr: Address): [UInt64] { | ||
let cp = getAccount(addr).getCapability<&{NonFungibleToken.CollectionPublic}>(FlowtyWrapped.CollectionPublicPath).borrow() | ||
?? panic("collection not found") | ||
|
||
let nftIDs = cp.getIDs() | ||
return nftIDs | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters