-
Notifications
You must be signed in to change notification settings - Fork 807
uplift: add customlogs
package from evm repositories
#4332
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: master
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR uplifts the customlogs
package from EVM repositories (subnet-evm and coreth) to AvalancheGo to eliminate duplicate maintenance. The package provides utility functions for working with Ethereum logs.
- Adds a new
customlogs
package undervms/evm/
- Introduces
FlattenLogs
utility function for converting nested log arrays
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: rodrigo <77309055+RodrigoVillar@users.noreply.github.com> Signed-off-by: Jonathan Oppenheimer <147infiniti@gmail.com>
Seems weird to uplift untested code, but it seems slightly silly to test this |
Why this should be merged
There are packages in subnet-evm and coreth that share a lot of functionality / are mirrored. As has been discussed as an evm team wide effort, we are working to uplift these packages to AvalancheGo to prevent the duplicative maintenance of two sets of the same code. This particular package,
customlogs
is a relatively easy lift.How this was tested
This is currently 'dead' code; after a new AvalancheGo release is dropped, we can use the code in the evm repositories.
Need to be documented in RELEASES.md?
No