[Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: cannot find type in this scope: `NonFungibleToken` --> 69b8bb6cb8b2ee2659028309c9527a9164f0496d13bbf2034133de7b9b2af7d9:19:34 | 19 | let recipientCollectionRef: &{NonFungibleToken.Receiver} | ^^^^^^^^^^^^^^^^ not found in this scope error: ambiguous intersection type --> 69b8bb6cb8b2ee2659028309c9527a9164f0496d13bbf2034133de7b9b2af7d9:19:33 | 19 | let recipientCollectionRef: &{NonFungibleToken.Receiver} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `AuthAccount` --> 69b8bb6cb8b2ee2659028309c9527a9164f0496d13bbf2034133de7b9b2af7d9:21:20 | 21 | prepare(signer: AuthAccount) { | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 69b8bb6cb8b2ee2659028309c9527a9164f0496d13bbf2034133de7b9b2af7d9:32:126 | 32 | let collectionData = KaratNFT.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData? | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 69b8bb6cb8b2ee2659028309c9527a9164f0496d13bbf2034133de7b9b2af7d9:32:86 | 32 | let collectionData = KaratNFT.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData? | ^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 69b8bb6cb8b2ee2659028309c9527a9164f0496d13bbf2034133de7b9b2af7d9:32:81 | 32 | let collectionData = KaratNFT.resolveContractView(resourceType: nil, viewType: Type<MetadataViews.NFTCollectionData>()) as! MetadataViews.NFTCollectionData? | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `NonFungibleToken` --> 69b8bb6cb8b2ee2659028309c9527a9164f0496d13bbf2034133de7b9b2af7d9:40:82 | 40 | self.recipientCollectionRef = getAccount(recipient).capabilities.borrow<&{NonFungibleToken.Receiver}>( | ^^^^^^^^^^^^^^^^ not found in this scope error: ambiguous intersection type --> 69b8bb6cb8b2ee2659028309c9527a9164f0496d13bbf2034133de7b9b2af7d9:40:81 | 40 | self.recipientCollectionRef = getAccount(recipient).capabilities.borrow<&{NonFungibleToken.Receiver}>( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot infer type parameter: `T` --> 69b8bb6cb8b2ee2659028309c9527a9164f0496d13bbf2034133de7b9b2af7d9:40:38 | 40 | self.recipientCollectionRef = getAccount(recipient).capabilities.borrow<&{NonFungibleToken.Receiver}>( 41 | collectionData.publicPath 42 | ) ?? panic("Could not get receiver reference to the NFT Collection") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Happy diving into the flow Remember to upgrade your contracts to 1.0!