Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
--> 67af7ecf76556cd3.ABD:486:20
|
486 | return &ABD.sets[setID] as &Set
| ^^^^^^^^^^^^^^^ expected `ABD.Set`, got `ABD.Set?`
error: mismatched types
--> 67af7ecf76556cd3.ABD:639:20
|
639 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: mismatched types
--> 67af7ecf76556cd3.ABD:654:27
|
654 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: cannot find type in this scope: `ABD`
--> fc259adc5d91732cdf7d49ca30048265105da316ac375d40195589c868039532:11:32
|
11 | if acct.borrow<&ABD.Collection>(from: /storage/MomentCollection) == nil {
| ^^^ not found in this scope
error: cannot infer type parameter: `T`
--> fc259adc5d91732cdf7d49ca30048265105da316ac375d40195589c868039532:11:19
|
11 | if acct.borrow<&ABD.Collection>(from: /storage/MomentCollection) == nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find type in this scope: `ABD`
--> fc259adc5d91732cdf7d49ca30048265105da316ac375d40195589c868039532:14:71
|
14 | let collection <- ABD.createEmptyCollection() as! @ABD.Collection
| ^^^ not found in this scope
error: cannot find variable in this scope: `ABD`
--> fc259adc5d91732cdf7d49ca30048265105da316ac375d40195589c868039532:14:38
|
14 | let collection <- ABD.createEmptyCollection() as! @ABD.Collection
| ^^^ not found in this scope
error: cannot find type in this scope: `ABD`
--> fc259adc5d91732cdf7d49ca30048265105da316ac375d40195589c868039532:20:32
|
20 | acct.link<&{ABD.MomentCollectionPublic}>(/public/MomentCollection, target: /storage/MomentCollection)
| ^^^ not found in this scope
error: ambiguous restricted type
--> fc259adc5d91732cdf7d49ca30048265105da316ac375d40195589c868039532:20:31
|
20 | acct.link<&{ABD.MomentCollectionPublic}>(/public/MomentCollection, target: /storage/MomentCollection)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot infer type parameter: `T`
--> fc259adc5d91732cdf7d49ca30048265105da316ac375d40195589c868039532:20:20
|
20 | acct.link<&{ABD.MomentCollectionPublic}>(/public/MomentCollection, target: /storage/MomentCollection)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^