Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
--> 60ef868de35f9728.ALYPHS:87:20
|
87 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: mismatched types
--> 60ef868de35f9728.ALYPHS:94:27
|
94 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: cannot find type in this scope: `ALYPHS`
--> ab9154c7084b8b8431a83200d10010ca785387471ebb0cb1f0bdb174cd7994da:5:30
|
5 | if acct.borrow<&ALYPHS.Collection>(from: /storage/NFTCollection) != nil {
| ^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> ab9154c7084b8b8431a83200d10010ca785387471ebb0cb1f0bdb174cd7994da:5:17
|
5 | if acct.borrow<&ALYPHS.Collection>(from: /storage/NFTCollection) != nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find variable in this scope: `ALYPHS`
--> ab9154c7084b8b8431a83200d10010ca785387471ebb0cb1f0bdb174cd7994da:8:32
|
8 | let collection <- ALYPHS.createEmptyCollection()
| ^^^^^^ not found in this scope
error: cannot find type in this scope: `ALYPHS`
--> ab9154c7084b8b8431a83200d10010ca785387471ebb0cb1f0bdb174cd7994da:11:26
|
11 | acct.link<&{ALYPHS.NonFungibleTokenCollectionPublic, NonFungibleToken.CollectionPublic}>(
| ^^^^^^ not found in this scope
error: cannot find type in this scope: `ALYPHS`
--> ab9154c7084b8b8431a83200d10010ca785387471ebb0cb1f0bdb174cd7994da:15:55
|
15 | let collectionRef = acct.getCapability<&{ALYPHS.NonFungibleTokenCollectionPublic, NonFungibleToken.CollectionPublic}>(/public/NFTCollection)
| ^^^^^^ not found in this scope