Whoops! 😨 Something unexpected happened...
[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: `FungibleToken.Withdrawable`
--> 96281bd5f48cb416cad804dbf0315154926a7df0c9f09a7eeca0234a1ccf6401:11:50
|
11 | let vaultRef = signer.storage.borrow<auth(FungibleToken.Withdrawable) &FlowToken.Vault>(from: /storage/flowTokenVault)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot access `withdraw`: function requires `Withdraw` authorization, but reference only has `FungibleToken` authorization
--> 96281bd5f48cb416cad804dbf0315154926a7df0c9f09a7eeca0234a1ccf6401:15:26
|
15 | self.sentVault <- vaultRef.withdraw(amount: amount)
| ^^^^^^^^^^^^^^^^^