Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
--> 34ac358b9819f79d.NFTKred:141:20
|
141 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: mismatched types
--> 34ac358b9819f79d.NFTKred:158:27
|
158 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: cannot find variable in this scope: `NFTKred`
--> 7183fb99af1dc30e85f2d2aa845a9ec2146027bed63b1846c76e90e06cc78cf9:8:42
|
8 | let collection <- NFTKred.createEmptyCollection()
| ^^^^^^^ not found in this scope
error: mismatched types for type parameter
--> 7183fb99af1dc30e85f2d2aa845a9ec2146027bed63b1846c76e90e06cc78cf9:11:64
|
11 | acct.save<@NonFungibleToken.Collection>(<-collection, to: /storage/NFTKredCollection)
| ^^^^^^^^^^^^ type parameter T is bound to `NonFungibleToken.Collection`, but got `<<invalid>>` here
error: cannot find type in this scope: `NFTKred`
--> 7183fb99af1dc30e85f2d2aa845a9ec2146027bed63b1846c76e90e06cc78cf9:17:35
|
17 | acct.link<&NFTKred.Collection{NonFungibleToken.CollectionPublic, NFTKred.NFTKredCollectionPublic}>(NFTKred.CollectionPublicPath, target: NFTKred.CollectionStoragePath)
| ^^^^^^^ not found in this scope
error: cannot find type in this scope: `NFTKred`
--> 7183fb99af1dc30e85f2d2aa845a9ec2146027bed63b1846c76e90e06cc78cf9:17:89
|
17 | acct.link<&NFTKred.Collection{NonFungibleToken.CollectionPublic, NFTKred.NFTKredCollectionPublic}>(NFTKred.CollectionPublicPath, target: NFTKred.CollectionStoragePath)
| ^^^^^^^ not found in this scope
error: cannot find variable in this scope: `NFTKred`
--> 7183fb99af1dc30e85f2d2aa845a9ec2146027bed63b1846c76e90e06cc78cf9:17:123
|
17 | acct.link<&NFTKred.Collection{NonFungibleToken.CollectionPublic, NFTKred.NFTKredCollectionPublic}>(NFTKred.CollectionPublicPath, target: NFTKred.CollectionStoragePath)
| ^^^^^^^ not found in this scope
error: cannot find variable in this scope: `NFTKred`
--> 7183fb99af1dc30e85f2d2aa845a9ec2146027bed63b1846c76e90e06cc78cf9:17:161
|
17 | acct.link<&NFTKred.Collection{NonFungibleToken.CollectionPublic, NFTKred.NFTKredCollectionPublic}>(NFTKred.CollectionPublicPath, target: NFTKred.CollectionStoragePath)
| ^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 7183fb99af1dc30e85f2d2aa845a9ec2146027bed63b1846c76e90e06cc78cf9:17:24
|
17 | acct.link<&NFTKred.Collection{NonFungibleToken.CollectionPublic, NFTKred.NFTKredCollectionPublic}>(NFTKred.CollectionPublicPath, target: NFTKred.CollectionStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^