Whoops! 😨 Something unexpected happened...
[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`
--> 7f1a293dfdee6b86082bbef783783159a6f7c44d377495e0b031702b7834b2a5:38:34
|
38 | if self.recipient.borrow<&Crystal.Collection>(from: /storage/EternalCrystalCollection) == nil {
| ^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 7f1a293dfdee6b86082bbef783783159a6f7c44d377495e0b031702b7834b2a5:38:11
|
38 | if self.recipient.borrow<&Crystal.Collection>(from: /storage/EternalCrystalCollection) == nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find variable in this scope: `Crystal`
--> 7f1a293dfdee6b86082bbef783783159a6f7c44d377495e0b031702b7834b2a5:39:30
|
39 | let collection <- Crystal.createEmptyCollection()
| ^^^^^^^ not found in this scope
error: cannot find type in this scope: `Crystal`
--> 7f1a293dfdee6b86082bbef783783159a6f7c44d377495e0b031702b7834b2a5:41:34
|
41 | self.recipient.link<&{Crystal.CrystalCollectionPublic}>(
| ^^^^^^^ not found in this scope
error: ambiguous restricted type
--> 7f1a293dfdee6b86082bbef783783159a6f7c44d377495e0b031702b7834b2a5:41:33
|
41 | self.recipient.link<&{Crystal.CrystalCollectionPublic}>(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot infer type parameter: `T`
--> 7f1a293dfdee6b86082bbef783783159a6f7c44d377495e0b031702b7834b2a5:41:12
|
41 | self.recipient.link<&{Crystal.CrystalCollectionPublic}>(
| ^
error: cannot find type in this scope: `Crystal`
--> 7f1a293dfdee6b86082bbef783783159a6f7c44d377495e0b031702b7834b2a5:56:22
|
56 | .borrow<&{Crystal.CrystalCollectionPublic}>()
| ^^^^^^^ not found in this scope
error: ambiguous restricted type
--> 7f1a293dfdee6b86082bbef783783159a6f7c44d377495e0b031702b7834b2a5:56:21
|
56 | .borrow<&{Crystal.CrystalCollectionPublic}>()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot infer type parameter: `T`
--> 7f1a293dfdee6b86082bbef783783159a6f7c44d377495e0b031702b7834b2a5:54:40
|
54 | let receiverCrystalCollection = self.recipient
| ^
error: cannot find variable in this scope: `Crystal`
--> 7f1a293dfdee6b86082bbef783783159a6f7c44d377495e0b031702b7834b2a5:70:51
|
70 | receiverCrystalCollection.deposit(token: <-Crystal.merge(shards: <-shards)!)
| ^^^^^^^ not found in this scope