Flow price: --
62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c

Transaction

Hash: 62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c
error
Error

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`
  --> 62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c:38:34
   |
38 |         if self.recipient.borrow<&Crystal.Collection>(from: /storage/EternalCrystalCollection) == nil {
   |                                   ^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
  --> 62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c:38:11
   |
38 |         if self.recipient.borrow<&Crystal.Collection>(from: /storage/EternalCrystalCollection) == nil {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find variable in this scope: `Crystal`
  --> 62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c:39:30
   |
39 |             let collection <- Crystal.createEmptyCollection()
   |                               ^^^^^^^ not found in this scope

error: cannot find type in this scope: `Crystal`
  --> 62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c:41:34
   |
41 |             self.recipient.link<&{Crystal.CrystalCollectionPublic}>(
   |                                   ^^^^^^^ not found in this scope

error: ambiguous restricted type
  --> 62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c:41:33
   |
41 |             self.recipient.link<&{Crystal.CrystalCollectionPublic}>(
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
  --> 62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c:41:12
   |
41 |             self.recipient.link<&{Crystal.CrystalCollectionPublic}>(
   |             ^

error: cannot find type in this scope: `Crystal`
  --> 62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c:56:22
   |
56 |             .borrow<&{Crystal.CrystalCollectionPublic}>()
   |                       ^^^^^^^ not found in this scope

error: ambiguous restricted type
  --> 62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c:56:21
   |
56 |             .borrow<&{Crystal.CrystalCollectionPublic}>()
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
  --> 62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c:54:40
   |
54 |         let receiverCrystalCollection = self.recipient
   |                                         ^

error: cannot find variable in this scope: `Crystal`
  --> 62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c:70:51
   |
70 |         receiverCrystalCollection.deposit(token: <-Crystal.merge(shards: <-shards)!)
   |                                                    ^^^^^^^ not found in this scope
Hash:
62e452311eb9ca2b6cb91865572853abd90f9b25c33bfb1422ad8cc12e0d496c
Status:
ERROR
Block height:
38363610
Block id:
26b349054584103f98f14676619c862ea0e2fd5bc6eed2eb300d566043c33e3f
Timestamp:
Monday 3 October 2022 at 22:08:40 UTC
()
Proposer: