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

Commit 85fea0f

Browse files
committed
core/types: create libevm.go containing extras registration moved from state_account.go
1 parent 40e6aad commit 85fea0f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

core/types/libevm.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// (c) 2025, Ava Labs, Inc. All rights reserved.
2+
// See the file LICENSE for licensing terms.
3+
4+
package types
5+
6+
import (
7+
ethtypes "github.com/ava-labs/libevm/core/types"
8+
)
9+
10+
var extras = ethtypes.RegisterExtras[ethtypes.NOOPHeaderHooks, *ethtypes.NOOPHeaderHooks, isMultiCoin]()

core/types/state_account.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ import (
3232

3333
type isMultiCoin bool
3434

35-
var (
36-
extras = ethtypes.RegisterExtras[ethtypes.NOOPHeaderHooks, *ethtypes.NOOPHeaderHooks, isMultiCoin]()
37-
IsMultiCoinPayloads = extras.StateAccount
38-
)
35+
var IsMultiCoinPayloads = extras.StateAccount
3936

4037
func IsMultiCoin(s ethtypes.StateOrSlimAccount) bool {
4138
return bool(extras.StateAccount.Get(s))

0 commit comments

Comments
 (0)