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 access `withdraw`: function requires `Withdraw` authorization, but reference is unauthorized
--> cfbeacaff3c23b2503b3c838f1b13a1f0ba66ec4fddc64533b23e523a63f3fdb:5:14
|
5 | self.vault <- signer.storage
6 | .borrow<&{FungibleToken.Provider}>(from: /storage/flowTokenVault)!
7 | .withdraw(amount: amount)
| ^^^^^^^^^^^^^^^^^^^^^
error: value of type `&{FungibleToken.Receiver}` has no member `borrow`
--> cfbeacaff3c23b2503b3c838f1b13a1f0ba66ec4fddc64533b23e523a63f3fdb:12:1
|
12 | .borrow<&{FungibleToken.Receiver}>()!
| ^^^^^^ unknown member