-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 tracing methods again #2851
Conversation
Thanks @Uxio0! We're doing a code freeze for v6 while we test out this last beta version, but will get this in as soon as we're stable. We're hoping we'll be able to release stable next week, but it depends on what sorts of bugs we find in the next few days. |
Sounds good, thanks @kclowes |
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 @Uxio0. I agree these are useful and it sits much nicer in a tracing
module. v6
is out now so this can probably start inching its way back in. I just made a quick pass and added some general cleanup notes / nits. Would be good to add some tests before we merge this in. @kclowes I can try to contribute here this week and see if we can pull some from the old Parity
module code (though that might take a bit to set up proper tests).
Hi @fselmo , thanks for your review. I've fixed the issues you reported. Regarding testing, I couldn't find any previous tests for this |
Yeah at some point we had a fairly convoluted parity test fixture that was removed likely before all this got removed. I wonder if we had some related tests there but it wouldn't make much sense to bring it back in that same way. I'll try to think of a lightweight way we can add a test here to know if something breaks or not. @kclowes and I were thinking that for now we might just want to manually test all the methods, merge it in if it looks good, and create an issue to track the testing for the |
Looks good to me |
- Add them on `web3.tracing` - Closes ethereum#2830
253153e
to
cd91f72
Compare
rebased with |
06a0e6e
to
3cd5c69
Compare
@kclowes @pacrob @Uxio0 I added formatters to these methods and tested all but the |
8b7f3a2
to
99bf0ef
Compare
- Add formatters for ``tracing`` module methods for human-readable values. - Make the ``tracing`` module a default module on the ``Web3`` class instance.
- Remove `maxFeePerGas` and `maxPriorityFeePerGas` request formatters from `method_formatters.py` and add them in `rpc_abi.py` along with the rest of the transaction request formatters for consistency. This separation just causes confusion. - Use ``TRANSACTION_PARAMS_ABIS`` formatters for ``trace_call``.
99bf0ef
to
250e3ca
Compare
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.
lgtm!
@Uxio0 This has been released in v6.1.0. Thanks again! |
Awesome, thank you very much! |
What was wrong?
Closes #2830
How was it fixed?
Add tracing methods again
Todo:
Cute animal picture