CODE_ERROR
There is an error in the cadence code of this transaction.
[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` --> 32f9dac3c90141495c806b34d4f55521d080b85ba7e059d8a101fc187e3abc19:14:21 | 14 | let galleryRef: &SubsArt.Gallery{SubsArt.GalleryCreator} | ^^^^^^^ not found in this scope error: cannot find type in this scope: `SubsArt` --> 32f9dac3c90141495c806b34d4f55521d080b85ba7e059d8a101fc187e3abc19:14:37 | 14 | let galleryRef: &SubsArt.Gallery{SubsArt.GalleryCreator} | ^^^^^^^ not found in this scope error: cannot find type in this scope: `SubsArt` --> 32f9dac3c90141495c806b34d4f55521d080b85ba7e059d8a101fc187e3abc19: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` --> 32f9dac3c90141495c806b34d4f55521d080b85ba7e059d8a101fc187e3abc19:18:59 | 18 | let userRef = acct.borrow<&SubsArt.SubsUser>(from: SubsArt.SubsUserStoragePath) | ^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 32f9dac3c90141495c806b34d4f55521d080b85ba7e059d8a101fc187e3abc19:18:22 | 18 | let userRef = acct.borrow<&SubsArt.SubsUser>(from: SubsArt.SubsUserStoragePath) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `SubsArt` --> 32f9dac3c90141495c806b34d4f55521d080b85ba7e059d8a101fc187e3abc19:20:25 | 20 | self.currArtID = SubsArt.nextArtID; | ^^^^^^^ not found in this scope error: cannot find variable in this scope: `SubsArt` --> 32f9dac3c90141495c806b34d4f55521d080b85ba7e059d8a101fc187e3abc19:31:8 | 31 | SubsArt.getArtMetaData(artID: self.currArtID) != nil: | ^^^^^^^ not found in this sco
Arguments:
metadata:
asset:
https://media.subs.t...92ab5ef184a.norm.jpg
creator:
38202@eilinpeiffer
dimension:
2550X3300
media_id:
348517
orientation:
portrait
title:
Amazone
type:
pic