[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` --> 89af17072e3d5bbb8d063bf2f534759fcdcf29a6388f3bf80bd385d35e9e84b4:14:42 | 14 | let childAcct = m.borrowAccount(addr: address) ?? panic("child account not found") | ^^^^^^^ not found in this scope error: cannot find variable in this scope: `providerCap` --> 89af17072e3d5bbb8d063bf2f534759fcdcf29a6388f3bf80bd385d35e9e84b4:26:11 | 26 | assert(providerCap.check(), message: "invalid provider capability") | ^^^^^^^^^^^ not found in this scope error: mismatched types --> 89af17072e3d5bbb8d063bf2f534759fcdcf29a6388f3bf80bd385d35e9e84b4:28:107 | 28 | let parentRef = signer.capabilities.get<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>(collectionData.storagePath)!.borrow() | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `PublicPath`, got `StoragePath` error: value of type `auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}?` has no member `withdraw` --> 89af17072e3d5bbb8d063bf2f534759fcdcf29a6388f3bf80bd385d35e9e84b4:31:25 | 31 | let nft <- parentRef.withdraw(withdrawID: id) | ^^^^^^^^ type is optional, consider optional-chaining: ?.withdraw
Loading...
Loading...
Loading...
Happy diving into the flow Remember to upgrade your contracts to 1.0!