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: `Withdraw`
--> a0a96fb0879c30b9f32bb09731a6df6c44178a7e89c659df23b0434959d2a4a5:5:38
|
5 | prepare(signer: auth(BorrowValue, Withdraw) &Account) {
| ^^^^^^^^ not found in this scope
error: cannot access `withdraw`: function requires `Withdraw` authorization, but reference is unauthorized
--> a0a96fb0879c30b9f32bb09731a6df6c44178a7e89c659df23b0434959d2a4a5:13:31
|
13 | let tokensWithdrawn <- payerVaultRef.withdraw(amount: startingBalance)
| ^^^^^^^^^^^^^^^^^^^^^^