CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: --> 67d057e86f551103660ce3dc4c20a07bd55e00546da64336878fd80a0b6cd833:11:2 | 11 | model.forEachKey(fun (ownerAddress: Address): Bool { 12 | 13 | let nftIdentifiers = model[ownerAddress]! 14 | 15 | let collectionDataMap = Utils.getNFTCollectionData(ownerAddress: ownerAddress, nftIdentifiers: nftIdentifiers) 16 | 17 | for nftIdentifier in nftIdentifiers { 18 | 19 | let contractType = Utils.getIdentifierContractType(identifier: nftIdentifier) 20 | 21 | assert(DapperWalletCollections.containsType(contractType), message: "NFT type not allowed: ".concat(contractType.identifier)) 22 | 23 | let collectionData = collectionDataMap[nftIdentifier] ?? panic("collection data lookup failed") 24 | 25 | if (signer.borrow<&AnyResource>(from: collectionData.storagePath) == nil) { 26 | 27 | signer.save(<-collectionData.createEmptyCollection(), to: collectionData.storagePath) 28 | } 29 | 30 | if (signer.getCapability<&{NonFungibleToken.CollectionPublic,NonFungibleToken.Receiver}>(collectionData.publicPath).borrow() == nil) { 31 | 32 | signer.unlink(collectionData.publicPath) 33 | signer.link<&{NonFungibleToken.CollectionPublic,NonFungibleToken.Receiver,MetadataViews.ResolverCollection}>(collectionData.publicPath, target: collectionData.storagePath) 34 | } 35 | } 36 | 37 | return true 38 | }) | ^^ error: panic: collection data lookup failed --> 67d057e86f551103660ce3dc4c20a07bd55e00546da64336878fd80a0b6cd833:23:61 | 23 | let collectionData = collectionDataMap[nftIdentifier] ?? panic("collection data lookup failed") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Arguments:
model:
0xecee7dbfcbe6f078:
["A.0b2a3299cc857e29.TopShot.NFT"]
Loading...