-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add withdraw excess with test cases #35
Add withdraw excess with test cases #35
Conversation
Hi @lorisleiva , Thanks for the review, I fixed the parts you mentioned. |
program/idl.json
Outdated
"docs": ["Total supply of tokens."], | ||
"docs": [ | ||
"Total supply of tokens." | ||
], |
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.
Hmm, I believe these changes should not exist if things we properly formatted. Have you tried the script that fixes linting/formatting?
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.
Yes, did lint and formatting same time. I can change this manually, it is up to 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.
Oh, looks like the formatting doesn't affect this file. 😞
Yeah if we could make sure this PR doesn't include unnecessary changes, that'd be great!
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.
There are a few things that needs to be adjusted before I can review this in more details. Please have a look at PR #38 for reference of what we're looking for. 🙏
- ❌ Add the instruction in
idl.json
in the right place (ordered by discriminator). - ❓ Update
getInitializeInstructionsForExtensions.ts
accordingly. - ❌ Add tests that follow the same conventions as the existing tests.
- ✅ Ensure the right discriminator is set.
- ❓ Ensure the
multiSigner
remaining account is set when applicable.
Hi @lorisleiva , thanks for the update. I updated the idl.json and also change test case according to reference. Haven't done any changes in |
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.
Thank you! Almost there, just a few more comments before merging! 💪
Hi @lorisleiva , thanks for the review. Code is updated according to your review. |
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.
Few more changes before merging this in. Then, if the tests are passing, LGTM!
Also please fix formatting to make CI pass. 🙏
The test is failing due to |
Hi @lorisleiva , thanks for the review. Updated the test case. |
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.
Perfection! Thank you for your contribution! 🍺
Add withdraw excess with test cases.
This pull request was created for https://app.gib.work/bounties/12adc3ff-7afb-45cd-99c0-399bc43f4807 in an attempt to solve a bounty #27 . Payment for the bounty is immediately sent to the contributor after merge.