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

access(contract) and access(account) documentation #3207

Open
jacob-tucker opened this issue Mar 31, 2024 · 0 comments
Open

access(contract) and access(account) documentation #3207

jacob-tucker opened this issue Mar 31, 2024 · 0 comments
Labels
Documentation Improvements or additions to documentation Feedback

Comments

@jacob-tucker
Copy link

Current Behavior

Right now access(contract) and access(account) indicate that the scope is only in the current contract or current account, respectively.

This is not true. If you declare access(contract) or access(account) in an interface in one contract, and implement that interface in another contract, you can access the var/function in both contracts.

Expected Behavior

Improve the docs to better indicate the actual scope.

Steps To Reproduce

Look at the docs

Environment

- Cadence version:
- Network:
@jacob-tucker jacob-tucker added Bug Something isn't working Feedback labels Mar 31, 2024
@turbolent turbolent added Documentation Improvements or additions to documentation and removed Bug Something isn't working labels Apr 1, 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 Feedback
Projects
None yet
Development

No branches or pull requests

2 participants