-
Notifications
You must be signed in to change notification settings - Fork 151
Migrate trace_callMany and trace_call to alloy types #4028
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
base: main
Are you sure you want to change the base?
Conversation
This migrates the trace_callMany functionality from legacy web3 types to alloy primitives and RPC types, including: - Replace web3 CallRequest with alloy TransactionRequest - Replace web3 BlockTrace with alloy TraceResults - Update trace_many API to use alloy types and TraceApi - Remove legacy type conversions (IntoLegacy, IntoAlloy) - Replace primitive_types and ethcontract U256 with alloy U256 - Update error handling to use alloy RPC errors - Add provider-trace-api feature to alloy dependencies 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Summary of ChangesHello @jmg-duarte, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly advances the codebase's migration to Alloy by updating the core Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request is a significant and well-executed migration from legacy web3 types to modern alloy primitives for trace_callMany and trace_call functionality. The changes are consistent across the codebase, resulting in cleaner code, notably the refactoring of trace_many to use alloy's TraceApi. I've identified a potential correctness issue in bad_token/trace_call.rs where the decoding of U256 from trace outputs has become less strict, which could affect bad token detection. My review includes suggestions to address this. Overall, this is an excellent refactoring effort.
m-sz
left a comment
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 with a small typo
Description
Migrates the trace_callMany and trace_call functionality from legacy web3 types to alloy primitives and RPC types. This continues the ongoing effort to migrate the codebase to alloy.
Changes
How to test