Flow price: --
515cbe879dbc1cd56997d9c838f4e397c165235e30e5b4acfb730815d3e03c63

Transaction

Hash: 515cbe879dbc1cd56997d9c838f4e397c165235e30e5b4acfb730815d3e03c63
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`
  --> 515cbe879dbc1cd56997d9c838f4e397c165235e30e5b4acfb730815d3e03c63:14:21
   |
14 |     let galleryRef: &SubsArt.Gallery{SubsArt.GalleryCreator}
   |                      ^^^^^^^ not found in this scope

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

error: cannot find type in this scope: `SubsArt`
  --> 515cbe879dbc1cd56997d9c838f4e397c165235e30e5b4acfb730815d3e03c63: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`
  --> 515cbe879dbc1cd56997d9c838f4e397c165235e30e5b4acfb730815d3e03c63:18:59
   |
18 |         let userRef = acct.borrow<&SubsArt.SubsUser>(from: SubsArt.SubsUserStoragePath)
   |                                                            ^^^^^^^ not found in this scope

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

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

error: cannot find variable in this scope: `SubsArt`
  --> 515cbe879dbc1cd56997d9c838f4e397c165235e30e5b4acfb730815d3e03c63:31:8
   |
31 |         SubsArt.getArtMetaData(artID: self.currArtID) != nil:
   |         ^^^^^^^ not found in this scope
Loading...
0

Loading...