Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation] Update get account docs #161

Open
sideninja opened this issue Jul 28, 2022 · 1 comment
Open

[Documentation] Update get account docs #161

sideninja opened this issue Jul 28, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@sideninja
Copy link

Here it says you can only get auth account in signed transactions:
https://docs.onflow.org/cadence/language/accounts/#authaccount
I believe this has now changed and you can do that in scripts as well. The docs should be updated?

@sideninja sideninja added the documentation Improvements or additions to documentation label Jul 28, 2022
@SupunS
Copy link
Member

SupunS commented Sep 21, 2022

Probably it has meant to say that, for transactions, only signed transactions can get the auth account. i.e: each signer is passed as an argument to the prepare block.

Maybe we could reword it.

In the next paragraph, it says scripts can also get

A script can get the AuthAccount for an account address using the built-in getAuthAccount function:

@turbolent turbolent transferred this issue from onflow/cadence Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants