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: `AuthAccount`
--> 3b90f4fe887aa5e739c4edfc194eb10d1eca2125bef20d81b9415df4af229696:13:19
|
13 | prepare(account: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: cannot access `stakeNewTokens`: function requires `BloctoPassPrivateEntitlement` authorization, but reference is unauthorized
--> 3b90f4fe887aa5e739c4edfc194eb10d1eca2125bef20d81b9415df4af229696:32:6
|
32 | self.bloctoPassRef.stakeNewTokens(amount: amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot access `withdraw`: function requires `Withdraw` authorization, but reference is unauthorized
--> 3b90f4fe887aa5e739c4edfc194eb10d1eca2125bef20d81b9415df4af229696:34:41
|
34 | self.bloctoPassRef.deposit(from: <-self.vaultRef.withdraw(amount: amount - lockedBalance))
| ^^^^^^^^^^^^^^^^^^^^^^
error: cannot access `stakeNewTokens`: function requires `BloctoPassPrivateEntitlement` authorization, but reference is unauthorized
--> 3b90f4fe887aa5e739c4edfc194eb10d1eca2125bef20d81b9415df4af229696:35:6
|
35 | self.bloctoPassRef.stakeNewTokens(amount: amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^