-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Token 22: Add functionality to update extra_account_metas after initializing. #5894
Conversation
Fixed two issues. |
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.
Hey thanks for contributing! This is looking really good.
It would be great if you added some tests for the new update
function and processor!
@buffalojoec I believe I got all of your suggested edits. Please let me know if the tests are appropriate. Thank you! |
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.
Thanks for the continued awesome work! I left a few more comments, mostly little stuff, but this is moving along really nicely!
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.
Nice!! Just a few more small items and we should be cruising 💪🏼 💪🏼
I think its ready 👍 |
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.
A few tiny things and we're ready to ship. Massive thanks again!
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.
Just have to update the check and we can punch this in 💪🏼
Again, much appreciated continued effort!
@buffalojoec alright fixed! Thank you for your help! |
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.
Awesome job!! Nice contribution to SPL 🤙🏼
This is my first attempt at adding an update functionality, issue #5662. I added an update function for tlv-account-resolution::ExtraAccountMetaList that will realloc the original data then rewrite the account metas. I also added the correct instruction handling to the cli, interface, and program.
The account size is increased if needed by the program. As far as I am aware there is no way to decrease the size of an account, only make it larger.
This is my first open-source contribution, so please let me know if I did something improper dev-ops wise.
Thank you!