CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] cadence runtime error Execution failed: error: mismatched types --> 54d234750bf1a603.Crystal:129:20 | 129 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 54d234750bf1a603.Crystal:135:27 | 135 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: cannot find type in this scope: `Crystal` --> 9e524a39817cb998947d9829fb113b3f0cd547d4a578092c861c9ed970ed123a:64:24 | 64 | if acct.borrow<&Crystal.Collection>(from: /storage/EternalCrystalCollection) == nil { | ^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 9e524a39817cb998947d9829fb113b3f0cd547d4a578092c861c9ed970ed123a:64:11 | 64 | if acct.borrow<&Crystal.Collection>(from: /storage/EternalCrystalCollection) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `Crystal` --> 9e524a39817cb998947d9829fb113b3f0cd547d4a578092c861c9ed970ed123a:66:30 | 66 | let collection <- Crystal.createEmptyCollection() | ^^^^^^^ not found in this scope error: cannot find type in this scope: `Crystal` --> 9e524a39817cb998947d9829fb113b3f0cd547d4a578092c861c9ed970ed123a:72:24 | 72 | acct.link<&{Crystal.CrystalCollectionPublic}>(/public/EternalCrystalCollection, target: /storage/EternalCrystalCollection) | ^^^^^^^ not found in this scope error: ambiguous restricted type --> 9e524a39817cb998947d9829fb113b3f0cd547d4a578092c861c9ed970ed123a:72:23 | 72 | acct.link<&{Crystal.CrystalCollectionPublic}>(/public/EternalCrystalCollection, target: /storage/EternalCrystalCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot infer type parameter: `T` --> 9e524a39817cb998947d9829fb113b3f0cd547d4a578092c861c9ed970ed123a:72:12 | 72 | acct.link<&{Crystal.CrystalCollectionPublic}>(/public/EternalCrystalCollection, target: /storage/EternalCrystalCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Arguments:
publicKey:
f847b840721663f3d9e2...efca41514802018203e8