[Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: mismatched types --> 5e32538f5aec162ad9869a78ae4fcc37dd98a197ebeb8cb87106c0aac3fdc1a1:21:80 | 21 | let controllerID = childAcct.getControllerIDForType(type: capType, forPath: collectionData.publicPath) | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `StoragePath`, got `PublicPath` error: cannot find variable in this scope: `providerCap` --> 5e32538f5aec162ad9869a78ae4fcc37dd98a197ebeb8cb87106c0aac3fdc1a1:26:11 | 26 | assert(providerCap.check(), message: "invalid provider capability") | ^^^^^^^^^^^ not found in this scope error: mismatched types --> 5e32538f5aec162ad9869a78ae4fcc37dd98a197ebeb8cb87106c0aac3fdc1a1:28:107 | 28 | let parentRef = signer.capabilities.get<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>(collectionData.storagePath)!.borrow() | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `PublicPath`, got `StoragePath` error: cannot apply binary operation ?? to left-hand type --> 5e32538f5aec162ad9869a78ae4fcc37dd98a197ebeb8cb87106c0aac3fdc1a1:31:15 | 31 | let nft <- parentRef!.withdraw(withdrawID: id) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `optional`, got `{NonFungibleToken.NFT}`
Loading...
Loading...
Loading...
Happy diving into the flow Remember to upgrade your contracts to 1.0!