Flow price: --
94c5987b499a1a80ec0c4f8c59b2db0e8856c0181c5ec264c35ade231fe5c372

Transaction

Hash: 94c5987b499a1a80ec0c4f8c59b2db0e8856c0181c5ec264c35ade231fe5c372
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`
  --> 94c5987b499a1a80ec0c4f8c59b2db0e8856c0181c5ec264c35ade231fe5c372:31:24
   |
31 |         if user.borrow<&Crystal.Collection>(from: /storage/EternalCrystalCollection) == nil {
   |                         ^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
  --> 94c5987b499a1a80ec0c4f8c59b2db0e8856c0181c5ec264c35ade231fe5c372:31:11
   |
31 |         if user.borrow<&Crystal.Collection>(from: /storage/EternalCrystalCollection) == nil {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

error: cannot find type in this scope: `Crystal`
  --> 94c5987b499a1a80ec0c4f8c59b2db0e8856c0181c5ec264c35ade231fe5c372:34:24
   |
34 |             user.link<&{Crystal.CrystalCollectionPublic}>(
   |                         ^^^^^^^ not found in this scope

error: ambiguous restricted type
  --> 94c5987b499a1a80ec0c4f8c59b2db0e8856c0181c5ec264c35ade231fe5c372:34:23
   |
34 |             user.link<&{Crystal.CrystalCollectionPublic}>(
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
  --> 94c5987b499a1a80ec0c4f8c59b2db0e8856c0181c5ec264c35ade231fe5c372:34:12
   |
34 |             user.link<&{Crystal.CrystalCollectionPublic}>(
   |             ^

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

error: ambiguous restricted type
  --> 94c5987b499a1a80ec0c4f8c59b2db0e8856c0181c5ec264c35ade231fe5c372:45:21
   |
45 |             .borrow<&{Crystal.CrystalCollectionPublic}>()
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
  --> 94c5987b499a1a80ec0c4f8c59b2db0e8856c0181c5ec264c35ade231fe5c372:43:23
   |
43 |         let receiver = self.user
   |                        ^

error: cannot find variable in this scope: `Crystal`
  --> 94c5987b499a1a80ec0c4f8c59b2db0e8856c0181c5ec264c35ade231fe5c372:59:34
   |
59 |         receiver.deposit(token: <-Crystal.merge(shards: <-shards)!)
   |                                   ^^^^^^^ not found in this scope
Hash:
94c5987b499a1a80ec0c4f8c59b2db0e8856c0181c5ec264c35ade231fe5c372
Status:
ERROR
Block height:
33040926
Block id:
f56392ec4180e15fab3225526385e03d97c821b3822ae00b2f04c9042134a5db
Timestamp:
Saturday 9 July 2022 at 15:39:51 UTC
()
Proposer: