-
Notifications
You must be signed in to change notification settings - Fork 16
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: solana resigning #5124
feat: solana resigning #5124
Conversation
I think it'd be good to have a test for the Solana resigning if possible, especially given that we are not rebuilding the transaction but rather replacing some accounts. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5124 +/- ##
=====================================
- Coverage 71% 71% -0%
=====================================
Files 460 460
Lines 81931 81896 -35
Branches 81931 81896 -35
=====================================
- Hits 58431 58341 -90
- Misses 20408 20454 +46
- Partials 3092 3101 +9 ☔ View full report in Codecov by Sentry. |
Might be worth it to write an integration test just to be safe. |
tried to write a unit test but realized that it is not possible. will write an integration test. |
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.
I left some comments.
Also, reading this, I'm not sure why the signer
was added inside the ApiCall instead of adding it next to the ApiCall in storage ((signer, api_call)
) - might have made things simpler?
would have been much simpler, yes (especially the migrations 😢 ). I wanted it to be a part of the apicall type because
|
tbh. I don't really agree with this (re. 1. we have already seen that the call.signer can get out of sync with the values in the inner tx, see above, and 2. is quite speculative) but i suppose now it's done, we can live with it. |
tried to write an integration test that tests the edge case where solana resigning is required but realized that that is also not possible easily because there is no mock cfe functionality of submitting/failing tx broadcasts. Insteadm I wrote an integration test that functions as a unit test for the requires_signature_refresh logic. |
Makes sense. I'll try to add some extra checks to ensure that we obtain a valid transaction, let's see if I can make that work. |
Pull Request
Closes: PRO-1524
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
Please include a succinct description of the purpose and content of the PR. What problem does it solve, and how? Link issues, discussions, other PRs, and anything else that will help the reviewer.
Non-Breaking changes
If this PR includes non-breaking changes, select the
non-breaking
label. On merge, CI will automatically cherry-pick the commit to a PR against the release branch.