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: --> 18780f7eccaca2be32ecc540c3a175f7fded6d5eeb375466cd5179bc2997be2d:7:8 | 7 | NFTCatalog.forEachCatalogKey(fun (key: String): Bool { 8 | if let metadata = NFTCatalog.getCatalogEntry(collectionIdentifier: key) { 9 | if !metadata.nftType.isRecovered { 10 | NFTList.ensureNFTCollectionRegistered(metadata.contractAddress, metadata.contractName) 11 | } 12 | } 13 | return true 14 | }) | ^^ --> 49a7cda3a1eecc29.NFTCatalog:207:8 | 207 | self.catalog.forEachKey(function) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> 18780f7eccaca2be32ecc540c3a175f7fded6d5eeb375466cd5179bc2997be2d:10:20 | 10 | NFTList.ensureNFTCollectionRegistered(metadata.contractAddress, metadata.contractName) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> 15a918087ab12d86.NFTList:1143:69 | 1143 | if !self.isNFTCollectionRegistered(address, contractName) && self.isValidToRegister(address, contractName) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> 15a918087ab12d86.NFTList:1129:30 | 1129 | if let dataView = contractRef.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: panic: Could not borrow a reference to the stored collection --> 097bafa4e0b48eef.CharityNFT:150:17 | 150 | ) ?? panic("Could not borrow a reference to the stored collection") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Loading...