-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Feat: Update AccountsClose to be safe to call manually #2209
Feat: Update AccountsClose to be safe to call manually #2209
Conversation
(cherry picked from commit d6e43c1)
@stegaBOB is attempting to deploy a commit to the coral-xyz Team on Vercel. A member of the Team first needs to authorize it. |
@armaniferrante The core part of this change is switching |
This may actually cause issues if assign is called manually. I'm not sure if the serialization would normally fail in that case. I'm going to do an additional test here first and I'll report back. |
@Henry-E @armaniferrante I updated the AccountsExit logic and it should prevent any false positives from being triggered on accounts with reassigned owners. |
This PR should be ready to merge in. The failed workflow runs fails were GitHub network errors. |
* fix other lints to make the test pass (cherry picked from commit d6e43c1) * update close to make it safe to call manually * fix test script * re-add safety warnings for deprecated account types * update close checking logic * readd logic for deprecated methods * add additional checks to account_loader in exit
Updates the
AccountsClose
trait to ensure its safe to call manually.Also removed the warnings and added more tests to make sure its safe. Also added
AccountsClose
to the prelude.