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

New lint: Report use of Sysvar accounts when it is available through runtime. #88

Closed
S3v3ru5 opened this issue Feb 22, 2024 · 1 comment

Comments

@S3v3ru5
Copy link
Contributor

S3v3ru5 commented Feb 22, 2024

Sysvar data can be accessed from the runtime using T::get() or by taking the Sysvar account in the instruction and parsing its data. It is efficient and less error-prone to access the sysvar data from the runtime.

reference: https://docs.solanalabs.com/runtime/sysvars

@S3v3ru5
Copy link
Contributor Author

S3v3ru5 commented Mar 8, 2024

Lint added in #92

@S3v3ru5 S3v3ru5 closed this as completed Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant