-
Notifications
You must be signed in to change notification settings - Fork 4.5k
rpc: add tests for simulate transaction inner instructions #34495
rpc: add tests for simulate transaction inner instructions #34495
Conversation
e196075
to
2552c36
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #34495 +/- ##
========================================
Coverage 81.7% 81.7%
========================================
Files 826 826
Lines 223413 223458 +45
========================================
+ Hits 182614 182721 +107
+ Misses 40799 40737 -62 |
2552c36
to
9c1e45f
Compare
Ah nuts, I think some recent Bank changes nuked this test setup. |
9c1e45f
to
d33b2b7
Compare
This should be ready for another look @CriesofCarrots. Is there a way to trigger CI manually for PRs? I think the "clippy on MacOS" job hiccuped, but I seem to be compliant here. I can push a rebase sometime in the future as well to trigger if need be. |
So excited for this! If you get a chance to add this to the docs too… 🤌🏻 |
d33b2b7
to
0b65a58
Compare
I rewrote this to use built-in program instructions to avoid the added dependencies and setup stuff. Much cleaner now. If we want coverage on the token program instructions, etc. We'll have to consider adding |
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, much lighter, thanks!
Just a couple suggestions for simplification, and one question
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.
r+ once CI is happy; you'll need to rebase to pick up the audit fix
7fafd1f
to
8ec37ad
Compare
And yes, please update the JSON-RPC docs! 🙏 (I know I'm going to have a hard time remembering to update them now that they're out of this repo. Hopefully we can help each other :)) |
I put it on my list! |
Problem
As of #34313, inner instructions can now optionally be included in the RPC response for
simulateTransaction
. However, the test coverage on this new feature is lacking.Summary of Changes
Added some tests specifically for the
innerInstructions
on the RPC'ssimulateTransaction
method.