-
Notifications
You must be signed in to change notification settings - Fork 517
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
smol fix for process_remove_member.rs #1166
base: master
Are you sure you want to change the base?
Conversation
plz sers, I will earn so much of my hydra wasted efforts back if we can fix the remove Member ix. expected behavior: feed it a member (which is seeded as mint of membership voucher) and a destination (native account) and it works actual behavior: it does a check to see if member is owned by spl token, errors if so with "InvalidCloseAccountDestination. Error Number: 6024. Error Message: Sending Sol to a SPL token destination will render the sol unusable." fix: this check is meant for the destination, to see if it is a native account. do a switcheroo and the checks should pass.
it's actually better like this, tbf.
edits, yes I'm doon this in the browser: check if destination not owned by system program, if not, error with more appropriate error. |
hi :) @blockiosaurus |
I'll personally be at least 42 sol up when this gets merged 🙏🏻 |
Can you fix the formatting so the CI passes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI just needs to pass and this is good to go.
roger, wip |
alright @blockiosaurus I have no idea how to see which ci are failing or why |
plz sers, I will earn so much of my hydra wasted efforts back if we can fix the remove Member ix.
expected behavior: feed it a member (which is seeded as mint of membership voucher) and a destination (native account) and it works
actual behavior: it does a check to see if member is owned by spl token, errors if so with "InvalidCloseAccountDestination. Error Number: 6024. Error Message: Sending Sol to a SPL token destination will render the sol unusable."
fix: this check is meant for the destination, to see if it is a native account. do a switcheroo and the checks should pass.