-
Notifications
You must be signed in to change notification settings - Fork 198
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
fix(rpc): TransactionTrace matches rpc v6 specs #2581
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2581 +/- ##
==========================================
+ Coverage 73.70% 74.18% +0.48%
==========================================
Files 137 138 +1
Lines 16711 16833 +122
==========================================
+ Hits 12317 12488 +171
+ Misses 3534 3490 -44
+ Partials 860 855 -5 ☔ View full report in Codecov by Sentry. |
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 code looks real good. I would like to add a real world test. Is this possible? Something that without this commit would cause the old code to fail
As agreed, i divide #2563 into 3, one PR for each of the 3 rpc pkgs
Here is the PR for rpcv6 pkg: create rpcv6.TransactionTrace instead of using vm.TransactionTrace
Main modifications:
TransactionTrace.ExecutionResources
matches specsTransactionTrace.FunctionInvocation.Events
matches specsQuestion
The specs say TransactionTrace.FunctionInvocation.Messages.To should be a Felt (currently a string in the code):
Is this todo in the struct still valid ?
I can just re-create the type in v6 and define
To
as a felt instead but i'm just not sure we wanna keep it as a string even in the vm pkg.