Flow price: --
209ed775d43ceea1ddf5b9e92999ce704c007a4143aadf3e4a043a44f5d2f2df

Transaction

Hash: 209ed775d43ceea1ddf5b9e92999ce704c007a4143aadf3e4a043a44f5d2f2df
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
   --> a44cca3d0db03cfd.SubsArt:495:20
    |
495 |             return &SubsArt.galleries[self.userID] as &Gallery
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `SubsArt.Gallery`, got `SubsArt.Gallery?`

error: mismatched types
   --> a44cca3d0db03cfd.SubsArt:571:20
    |
571 |             return &SubsArt.galleries[userID] as &SubsArt.Gallery
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `SubsArt.Gallery`, got `SubsArt.Gallery?`

error: mismatched types
   --> a44cca3d0db03cfd.SubsArt:587:27
    |
587 |             let gallery = &SubsArt.galleries[userID] as &SubsArt.Gallery
    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `SubsArt.Gallery`, got `SubsArt.Gallery?`

error: mismatched types
   --> a44cca3d0db03cfd.SubsArt:600:27
    |
600 |             let gallery = &SubsArt.galleries[userID] as &SubsArt.Gallery
    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `SubsArt.Gallery`, got `SubsArt.Gallery?`

error: mismatched types
   --> a44cca3d0db03cfd.SubsArt:745:20
    |
745 |             return &self.ownedNFTs[id] as &NonFungibleToken.NFT
    |                     ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`

error: mismatched types
   --> a44cca3d0db03cfd.SubsArt:760:27
    |
760 |                 let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
    |                            ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`

error: cannot find type in this scope: `SubsArt`
  --> 209ed775d43ceea1ddf5b9e92999ce704c007a4143aadf3e4a043a44f5d2f2df:14:21
   |
14 |     let galleryRef: &SubsArt.Gallery{SubsArt.GalleryCreator}
   |                      ^^^^^^^ not found in this scope

error: cannot find type in this scope: `SubsArt`
  --> 209ed775d43ceea1ddf5b9e92999ce704c007a4143aadf3e4a043a44f5d2f2df:14:37
   |
14 |     let galleryRef: &SubsArt.Gallery{SubsArt.GalleryCreator}
   |                                      ^^^^^^^ not found in this scope

error: cannot find type in this scope: `SubsArt`
  --> 209ed775d43ceea1ddf5b9e92999ce704c007a4143aadf3e4a043a44f5d2f2df:18:35
   |
18 |         let userRef = acct.borrow<&SubsArt.SubsUser>(from: SubsArt.SubsUserStoragePath)
   |                                    ^^^^^^^ not found in this scope

error: cannot find variable in this scope: `SubsArt`
  --> 209ed775d43ceea1ddf5b9e92999ce704c007a4143aadf3e4a043a44f5d2f2df:18:59
   |
18 |         let userRef = acct.borrow<&SubsArt.SubsUser>(from: SubsArt.SubsUserStoragePath)
   |                                                            ^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
  --> 209ed775d43ceea1ddf5b9e92999ce704c007a4143aadf3e4a043a44f5d2f2df:18:22
   |
18 |         let userRef = acct.borrow<&SubsArt.SubsUser>(from: SubsArt.SubsUserStoragePath)
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find variable in this scope: `SubsArt`
  --> 209ed775d43ceea1ddf5b9e92999ce704c007a4143aadf3e4a043a44f5d2f2df:20:25
   |
20 |         self.currArtID = SubsArt.nextArtID;
   |                          ^^^^^^^ not found in this scope

error: cannot find variable in this scope: `SubsArt`
  --> 209ed775d43ceea1ddf5b9e92999ce704c007a4143aadf3e4a043a44f5d2f2df:31:8
   |
31 |         SubsArt.getArtMetaData(artID: self.currArtID) != nil:
   |         ^^^^^^^ not found in this scope
Hash:
209ed775d43ceea1ddf5b9e92999ce704c007a4143aadf3e4a043a44f5d2f2df
Status:
ERROR
Block height:
32769398
Block id:
c3d29a0a3cf047793b281fc05df2eff0a94784a83005917175a0854d3557be77
Timestamp:
Tuesday 5 July 2022 at 04:52:33 UTC
()
Proposer:
Authorizers: