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