Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

sync: coreth PR #1305: feat!: explicit libevm calls to Register{Extras,Hooks}()#1773

Merged
ARR4N merged 12 commits into
masterfrom
arr4n/explicit-type-registration
Oct 6, 2025
Merged

sync: coreth PR #1305: feat!: explicit libevm calls to Register{Extras,Hooks}()#1773
ARR4N merged 12 commits into
masterfrom
arr4n/explicit-type-registration

Conversation

@ARR4N

@ARR4N ARR4N commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

Note

This is a port of ava-labs/coreth#1305

Why this should be merged

Allow imports of both coreth and subnet-evm without panic due to re-registration of libevm extras.

How this works

Makes registration explicit instead of in init() or in declaration of global variables.

This MUST be done in, and only in, tests and package main. For more background on the rationale, see the Google Go style guide re underscore imports for side effects, which have a similar effect.

How this was tested

Existing tests.

Need to be documented?

Yes

Need to update RELEASES.md?

Yes

@ARR4N ARR4N changed the title feat!: explicit vm.RegisterExtras() feat!: explicit libevm calls to Register{Extras,Hooks}() Oct 3, 2025
@ARR4N ARR4N marked this pull request as ready for review October 3, 2025 14:09
@ARR4N ARR4N requested a review from a team as a code owner October 3, 2025 14:09
@ARR4N ARR4N requested a review from maru-ava as a code owner October 3, 2025 14:14
@ARR4N ARR4N self-assigned this Oct 3, 2025
@ARR4N ARR4N enabled auto-merge October 3, 2025 14:35
@JonathanOppenheimer JonathanOppenheimer changed the title feat!: explicit libevm calls to Register{Extras,Hooks}() sync: coreth PR #1305: feat!: explicit libevm calls to Register{Extras,Hooks}() Oct 3, 2025
@ARR4N ARR4N added this pull request to the merge queue Oct 6, 2025
Comment thread plugin/evm/libevm.go
// RegisterAllLibEVMExtras is a convenience wrapper for calling
// [core.RegisterExtras], [customtypes.Register], and [params.RegisterExtras].
// Together these are necessary and sufficient for configuring libevm for
// C-Chain behaviour.

@ceyonur ceyonur Oct 6, 2025

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: subnet-evm

Suggested change
// C-Chain behaviour.
// Subnet-EVM behaviour.

Merged via the queue into master with commit 24d7e57 Oct 6, 2025
13 checks passed
@ARR4N ARR4N deleted the arr4n/explicit-type-registration branch October 6, 2025 13:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants