Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
--> 01ab36aaf654a13e.RaribleNFT:84:20
|
84 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: mismatched types
--> 01ab36aaf654a13e.RaribleNFT:88:23
|
88 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: mismatched types
--> 01ab36aaf654a13e.RaribleNFT:93:23
|
93 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: cannot find type in this scope: `RaribleNFT`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:7:42
|
7 | transaction(metadata: String, royalties: [RaribleNFT.Royalty]) {
| ^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `RaribleNFT`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:8:28
|
8 | let minter: Capability<&RaribleNFT.Minter>
| ^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `RaribleNFT`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:12:24
|
12 | if acct.borrow<&RaribleNFT.Collection>(from: RaribleNFT.collectionStoragePath) == nil {
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `RaribleNFT`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:12:53
|
12 | if acct.borrow<&RaribleNFT.Collection>(from: RaribleNFT.collectionStoragePath) == nil {
| ^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:12:11
|
12 | if acct.borrow<&RaribleNFT.Collection>(from: RaribleNFT.collectionStoragePath) == nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find type in this scope: `RaribleNFT`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:13:70
|
13 | let collection <- RaribleNFT.createEmptyCollection() as! @RaribleNFT.Collection
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `RaribleNFT`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:13:30
|
13 | let collection <- RaribleNFT.createEmptyCollection() as! @RaribleNFT.Collection
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `RaribleNFT`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:14:41
|
14 | acct.save(<- collection, to: RaribleNFT.collectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `RaribleNFT`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:15:86
|
15 | acct.link<&{NonFungibleToken.CollectionPublic,NonFungibleToken.Receiver}>(RaribleNFT.collectionPublicPath, target: RaribleNFT.collectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `RaribleNFT`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:15:127
|
15 | acct.link<&{NonFungibleToken.CollectionPublic,NonFungibleToken.Receiver}>(RaribleNFT.collectionPublicPath, target: RaribleNFT.collectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `RaribleNFT`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:18:22
|
18 | self.minter = RaribleNFT.minter()
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `RaribleNFT`
--> 65033ddd1a72e28bf77c2779621b9395114465586297080d1282808ce0c02bd1:19:73
|
19 | self.receiver = acct.getCapability<&{NonFungibleToken.Receiver}>(RaribleNFT.collectionPublicPath)
| ^^^^^^^^^^ not found in this scope