-
Notifications
You must be signed in to change notification settings - Fork 755
Use libevm instead of coreth #3918
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
Conversation
May or may not conflict with pr 3923 |
Yes it conflicts with 3923. This one addresses comments in that PR. |
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 migrates the project from using coreth packages to libevm packages to prevent side-effect issues in end-to-end tests.
- Replaces coreth/core and coreth/params with libevm/core and libevm/params in multiple files.
- Introduces a new test (TestMustNotImport) to ensure restricted packages (coreth imports) are not accidentally introduced.
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
File | Description |
---|---|
tests/fixture/tmpnet/genesis.go | Replaced coreth imports with libevm, mitigating side-effects. |
tests/fixture/imports_test.go | Added a test to check that coreth packages are not imported. |
tests/e2e/c/dynamic_fees.go | Updated import from coreth/params to libevm/params. |
genesis/genesis_test.go | Updated import from coreth/core to libevm/core. |
Files not reviewed (1)
- go.mod: Language not supported
Co-authored-by: Stephen Buttolph <[email protected]> ## Why this should be merged ## How this works ## How this was tested ## Need to be documented in RELEASES.md?
Why this should be merged
Importing
customtypes
andparams
pkg causes a libevm side-effect which prevents us to use any libevm based (subnet-evm, coreth) VMs to use the e2e tests here. This PR reduces usage of side-effect pkg.How this was tested
TestMustNotImport
, intests/fixture/imports_test.go
. This test ensures certain packages do not import restricted modules likeplugin/evm/customtypes
andparams
to avoid global configuration conflicts.Need to be documented in RELEASES.md?
No