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` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:13:21 | 13 | let galleryRef: &SubsArt.Gallery{SubsArt.GalleryCreator} | ^^^^^^^ not found in this scope error: cannot find type in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:13:37 | 13 | let galleryRef: &SubsArt.Gallery{SubsArt.GalleryCreator} | ^^^^^^^ not found in this scope error: cannot find type in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:19:35 | 19 | let userRef = acct.borrow<&SubsArt.SubsUser>(from: SubsArt.SubsUserStoragePath) | ^^^^^^^ not found in this scope error: cannot find variable in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:19:59 | 19 | let userRef = acct.borrow<&SubsArt.SubsUser>(from: SubsArt.SubsUserStoragePath) | ^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:19:22 | 19 | let userRef = acct.borrow<&SubsArt.SubsUser>(from: SubsArt.SubsUserStoragePath) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:26:29 | 26 | if recipient.borrow<&SubsArt.Collection>(from: SubsArt.CollectionStoragePath) == nil { | ^^^^^^^ not found in this scope error: cannot find variable in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:26:55 | 26 | if recipient.borrow<&SubsArt.Collection>(from: SubsArt.CollectionStoragePath) == nil { | ^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:26:11 | 26 | if recipient.borrow<&SubsArt.Collection>(from: SubsArt.CollectionStoragePath) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:29:67 | 29 | let collection <- SubsArt.createEmptyCollection() as! @SubsArt.Collection | ^^^^^^^ not found in this scope error: cannot find variable in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:29:30 | 29 | let collection <- SubsArt.createEmptyCollection() as! @SubsArt.Collection | ^^^^^^^ not found in this scope error: cannot find variable in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:32:45 | 32 | recipient.save(<-collection, to: SubsArt.CollectionStoragePath) | ^^^^^^^ not found in this scope error: cannot find type in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:35:29 | 35 | recipient.link<&{SubsArt.ArtCollectionPublic}>(SubsArt.CollectionPublicPath, target: SubsArt.CollectionStoragePath) | ^^^^^^^ not found in this scope error: ambiguous restricted type --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:35:28 | 35 | recipient.link<&{SubsArt.ArtCollectionPublic}>(SubsArt.CollectionPublicPath, target: SubsArt.CollectionStoragePath) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:35:59 | 35 | recipient.link<&{SubsArt.ArtCollectionPublic}>(SubsArt.CollectionPublicPath, target: SubsArt.CollectionStoragePath) | ^^^^^^^ not found in this scope error: cannot find variable in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:35:97 | 35 | recipient.link<&{SubsArt.ArtCollectionPublic}>(SubsArt.CollectionPublicPath, target: SubsArt.CollectionStoragePath) | ^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:35:12 | 35 | recipient.link<&{SubsArt.ArtCollectionPublic}>(SubsArt.CollectionPublicPath, target: SubsArt.CollectionStoragePath) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:44:55 | 44 | let receiverRef = self.recipient.getCapability(SubsArt.CollectionPublicPath).borrow<&{SubsArt.ArtCollectionPublic}>() | ^^^^^^^ not found in this scope error: cannot find type in this scope: `SubsArt` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:44:94 | 44 | let receiverRef = self.recipient.getCapability(SubsArt.CollectionPublicPath).borrow<&{SubsArt.ArtCollectionPublic}>() | ^^^^^^^ not found in this scope error: ambiguous restricted type --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:44:93 | 44 | let receiverRef = self.recipient.getCapability(SubsArt.CollectionPublicPath).borrow<&{SubsArt.ArtCollectionPublic}>() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot infer type parameter: `T` --> 8a30c26e499e3cf3b160df1ae7cd98b9dea2f84cb9081c580186ae93aff255ab:44:26 | 44 | let receiverRef = self.recipient.getCapability(SubsArt.CollectionPublicPath).borrow<&{SubsArt.ArtCollectionPublic}>() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Arguments:
artID:
940
Loading...