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

Empty discriminator should error as not inited #625

Closed
Henry-E opened this issue Aug 20, 2021 · 1 comment
Closed

Empty discriminator should error as not inited #625

Henry-E opened this issue Aug 20, 2021 · 1 comment
Labels

Comments

@Henry-E
Copy link

Henry-E commented Aug 20, 2021

If a program account hasn't been initialized, and it is passed into a function that assumes it has been initialized, then the program will error saying the program account has the wrong discriminator. Is it possible to instead detect where the wrong discriminator is because the program account hasn't been inited (maybe it's all zeros or doesn't even have any space allocated to it) and give a more helpful error as result.

@paul-schaaf
Copy link
Contributor

closed by #1024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants