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`
--> 9b1561f1428f918eaa71f489cabdf9b8a64b93f3f89d69612f9909022857f282:9:21
|
9 | prepare(account: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: cannot access `stakeRewardedTokens`: function requires `CollectionOwner` authorization, but reference is unauthorized
--> 9b1561f1428f918eaa71f489cabdf9b8a64b93f3f89d69612f9909022857f282:15:8
|
15 | self.stakingCollectionRef.stakeRewardedTokens(nodeID: nodeID, delegatorID: delegatorID, amount: amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^