Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 4fedb83e64f5e7eaaf9c82cff04991dc5bbae3a247b2634508b9e94b49bedcca:12:4
|
12 | acct.forEachPublic(fun (path: PublicPath, type: Type): Bool {
13 | if !type.isSubtype(of: providerType){
14 | return true
15 | }
16 |
17 | let collectionIdentifer = acct.getCapability<&AnyResource>(path).borrow()!.getType().identifier
18 | let segments = StringUtils.split(collectionIdentifer, ".")
19 | let nftTypeIdentifier = "A.".concat(segments[1]).concat(".").concat(segments[2]).concat(".NFT")
20 |
21 | var catalogIdentifier = ""
22 | if let catalogIdentifiers = NFTCatalog.getCollectionsForType(nftTypeIdentifier: nftTypeIdentifier) {
23 | for k in catalogIdentifiers.keys {
24 | if catalogIdentifiers[k] == true {
25 | catalogIdentifier = k
26 | }
27 | }
28 | }
29 |
30 | if catalogIdentifier == "" {
31 | panic("no catalog identifier found")
32 | }
33 |
34 | let catalogData = NFTCatalog.getCatalogEntry(collectionIdentifier: catalogIdentifier)!
35 |
36 | publicPaths.append(catalogData.collectionData.publicPath)
37 | storagePaths.append(catalogData.collectionData.storagePath)
38 |
39 | return true
40 | })
| ^^
error: panic: no catalog identifier found
--> 4fedb83e64f5e7eaaf9c82cff04991dc5bbae3a247b2634508b9e94b49bedcca:31:8
|
31 | panic("no catalog identifier found")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^