Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction invocation failed when executing transaction: [Error Code: 1101] cadence runtime error: Execution failed:
error: value of type `&FlowToken.Vault?` has no member `withdraw`
--> 11f14f03feb44289c9252c4ec7753c1475cfe17e1c4dbd57dede6d51d9a9b19c:20:52
|
20 | flowVault.deposit(from: <-flowT.withdraw(amount: flowT!.balance - 0.1))
| ^^^^^^^^ type is optional, consider optional-chaining: ?.withdraw