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