[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` --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a:8:31 | 8 | let receiver: Capability<&{NonFungibleToken.CollectionPublic}> | ^^^^^^^^^^^^^^^^ not found in this scope error: ambiguous intersection type --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a:8:30 | 8 | let receiver: Capability<&{NonFungibleToken.CollectionPublic}> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `NonFungibleToken` --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a:9:28 | 9 | let collectionRef: auth(NonFungibleToken.Withdraw) &Cryptoys.Collection | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `Cryptoys` --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a:9:56 | 9 | let collectionRef: auth(NonFungibleToken.Withdraw) &Cryptoys.Collection | ^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a:12:66 | 12 | self.receiver = getAccount(recipient).capabilities.get<&{NonFungibleToken.CollectionPublic}>(Cryptoys.CollectionPublicPath)! | ^^^^^^^^^^^^^^^^ not found in this scope error: ambiguous intersection type --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a:12:65 | 12 | self.receiver = getAccount(recipient).capabilities.get<&{NonFungibleToken.CollectionPublic}>(Cryptoys.CollectionPublicPath)! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `Cryptoys` --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a:12:102 | 12 | self.receiver = getAccount(recipient).capabilities.get<&{NonFungibleToken.CollectionPublic}>(Cryptoys.CollectionPublicPath)! | ^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a:12:25 | 12 | self.receiver = getAccount(recipient).capabilities.get<&{NonFungibleToken.CollectionPublic}>(Cryptoys.CollectionPublicPath)! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `NonFungibleToken` --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a: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` --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a: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` --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a: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` --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a:14:29 | 14 | self.collectionRef = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &Cryptoys.Collection>(from: Cryptoys.CollectionStoragePath)! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `Cryptoys` --> 186258f8649b557994742c821430077c261e4cfc2e6fbdadd0c7903b6ec4933a:18:76 | 18 | let nft <- self.collectionRef.withdraw(withdrawID: withdrawID) as! @Cryptoys.NFT | ^^^^^^^^ not found in this scope
Happy diving into the flow Remember to test your contracts in 1.0 here on testnet