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

lang: make it possible to get state of a program #1094

Closed
paul-schaaf opened this issue Dec 2, 2021 · 1 comment
Closed

lang: make it possible to get state of a program #1094

paul-schaaf opened this issue Dec 2, 2021 · 1 comment
Assignees
Labels
help wanted Extra attention is needed lang

Comments

@paul-schaaf
Copy link
Contributor

the Program struct currently assumes that a program has no data. This is no longer true with the upgradable bpf loader. A program now has a field program_data_address.

potential solution:
give Program a field Option<Pubkey> that stores the data if the given program's owner is the upgradable bpf loader

@paul-schaaf paul-schaaf added lang help wanted Extra attention is needed labels Dec 2, 2021
@paul-schaaf paul-schaaf self-assigned this Dec 10, 2021
@paul-schaaf
Copy link
Contributor Author

closed by #1125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed lang
Projects
None yet
Development

No branches or pull requests

1 participant