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
--> 0615ef642a157e784799f501b40c29f94f1bae4f9abc3157b2bb9d5465332428:13:31
|
13 | let tokensWithdrawn <- payerVaultRef.withdraw(amount: startingBalance)
| ^^^^^^^^^^^^^^^^^^^^^^