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`
--> 3f7520d0ee414dace97353769f308df8e0b38d91f2b44b8bfdbb31dff79c7262: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
--> 3f7520d0ee414dace97353769f308df8e0b38d91f2b44b8bfdbb31dff79c7262:15:26
|
15 | self.sentVault <- vaultRef.withdraw(amount: amount)
| ^^^^^^^^^^^^^^^^^