Whoops! 😨 Something unexpected happened...
[Error Code: 1054] error caused by: 1 error occurred:
* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: [Error Code: 1054] location (Cryptoys) is not a valid location: expecting an AddressLocation, but other location types are passed
--> Cryptoys
error: [Error Code: 1054] location (NonFungibleToken) is not a valid location: expecting an AddressLocation, but other location types are passed
--> NonFungibleToken
error: [Error Code: 1054] location (MetadataViews) is not a valid location: expecting an AddressLocation, but other location types are passed
--> MetadataViews
error: cannot find type in this scope: `NonFungibleToken`
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:8:31
|
8 | let receiver: Capability<&{NonFungibleToken.CollectionPublic}>
| ^^^^^^^^^^^^^^^^ not found in this scope
error: ambiguous intersection type
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:8:30
|
8 | let receiver: Capability<&{NonFungibleToken.CollectionPublic}>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find type in this scope: `NonFungibleToken`
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:9:28
|
9 | let collectionRef: auth(NonFungibleToken.Withdraw) &Cryptoys.Collection
| ^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `Cryptoys`
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:9:56
|
9 | let collectionRef: auth(NonFungibleToken.Withdraw) &Cryptoys.Collection
| ^^^^^^^^ not found in this scope
error: cannot find type in this scope: `NonFungibleToken`
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:12:66
|
12 | self.receiver = getAccount(recipient).capabilities.get<&{NonFungibleToken.CollectionPublic}>(Cryptoys.CollectionPublicPath)!
| ^^^^^^^^^^^^^^^^ not found in this scope
error: ambiguous intersection type
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:12:65
|
12 | self.receiver = getAccount(recipient).capabilities.get<&{NonFungibleToken.CollectionPublic}>(Cryptoys.CollectionPublicPath)!
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find variable in this scope: `Cryptoys`
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:12:102
|
12 | self.receiver = getAccount(recipient).capabilities.get<&{NonFungibleToken.CollectionPublic}>(Cryptoys.CollectionPublicPath)!
| ^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:12:25
|
12 | self.receiver = getAccount(recipient).capabilities.get<&{NonFungibleToken.CollectionPublic}>(Cryptoys.CollectionPublicPath)!
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find type in this scope: `NonFungibleToken`
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:14:56
|
14 | self.collectionRef = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &Cryptoys.Collection>(from: Cryptoys.CollectionStoragePath)!
| ^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `Cryptoys`
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:14:84
|
14 | self.collectionRef = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &Cryptoys.Collection>(from: Cryptoys.CollectionStoragePath)!
| ^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `Cryptoys`
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:14:111
|
14 | self.collectionRef = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &Cryptoys.Collection>(from: Cryptoys.CollectionStoragePath)!
| ^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:14:29
|
14 | self.collectionRef = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &Cryptoys.Collection>(from: Cryptoys.CollectionStoragePath)!
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find type in this scope: `Cryptoys`
--> 0a5ea50acd8fb4ee2b074d44d77053f28e40915cb2c2111b1651d276f7f01bae:18:76
|
18 | let nft <- self.collectionRef.withdraw(withdrawID: withdrawID) as! @Cryptoys.NFT
| ^^^^^^^^ not found in this scope