[Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: cannot find variable in this scope: `address` --> dcad1ec4a2f5532bd7bc5898633af95a11b90e43cef8add1752f155e8a8c68e6:14:42 | 14 | let childAcct = m.borrowAccount(addr: address) ?? panic("child account not found") | ^^^^^^^ not found in this scope error: mismatched types --> dcad1ec4a2f5532bd7bc5898633af95a11b90e43cef8add1752f155e8a8c68e6:21:80 | 21 | let controllerID = childAcct.getControllerIDForType(type: capType, forPath: collectionData.publicPath) | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `StoragePath`, got `PublicPath` error: cannot find variable in this scope: `providerCap` --> dcad1ec4a2f5532bd7bc5898633af95a11b90e43cef8add1752f155e8a8c68e6:26:11 | 26 | assert(providerCap.check(), message: "invalid provider capability") | ^^^^^^^^^^^ not found in this scope error: mismatched types --> dcad1ec4a2f5532bd7bc5898633af95a11b90e43cef8add1752f155e8a8c68e6: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 --> dcad1ec4a2f5532bd7bc5898633af95a11b90e43cef8add1752f155e8a8c68e6: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!