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

Commit fefce00

Browse files
committed
core/types: move state_account.go imports to imports.go
1 parent 8dba999 commit fefce00

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

core/types/imports.go

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ type (
2323
ReceiptForStorage = ethtypes.ReceiptForStorage
2424
Receipts = ethtypes.Receipts
2525
Signer = ethtypes.Signer
26+
SlimAccount = ethtypes.SlimAccount
27+
StateAccount = ethtypes.StateAccount
2628
Transaction = ethtypes.Transaction
2729
Transactions = ethtypes.Transactions
2830
TxByNonce = ethtypes.TxByNonce
@@ -45,12 +47,16 @@ const (
4547

4648
// The following functions are used directly as their upstream definitions.
4749
var (
48-
BloomLookup = ethtypes.BloomLookup
49-
BytesToBloom = ethtypes.BytesToBloom
50-
CreateBloom = ethtypes.CreateBloom
51-
NewContractCreation = ethtypes.NewContractCreation
52-
NewReceipt = ethtypes.NewReceipt
53-
NewTransaction = ethtypes.NewTransaction
50+
BloomLookup = ethtypes.BloomLookup
51+
BytesToBloom = ethtypes.BytesToBloom
52+
CreateBloom = ethtypes.CreateBloom
53+
FullAccount = ethtypes.FullAccount
54+
FullAccountRLP = ethtypes.FullAccountRLP
55+
NewContractCreation = ethtypes.NewContractCreation
56+
NewEmptyStateAccount = ethtypes.NewEmptyStateAccount
57+
NewReceipt = ethtypes.NewReceipt
58+
NewTransaction = ethtypes.NewTransaction
59+
SlimAccountRLP = ethtypes.SlimAccountRLP
5460

5561
// Signers
5662
LatestSigner = ethtypes.LatestSigner

core/types/state_account.go

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// (c) 2019-2021, Ava Labs, Inc.
1+
// (c) 2019-2025, Ava Labs, Inc.
22
//
33
// This file is a derived work, based on the go-ethereum library whose original
44
// notices appear below.
@@ -30,20 +30,6 @@ import (
3030
ethtypes "github.com/ava-labs/libevm/core/types"
3131
)
3232

33-
type (
34-
// Import these types from the go-ethereum package
35-
StateAccount = ethtypes.StateAccount
36-
SlimAccount = ethtypes.SlimAccount
37-
)
38-
39-
var (
40-
// Import these functions from the go-ethereum package
41-
NewEmptyStateAccount = ethtypes.NewEmptyStateAccount
42-
SlimAccountRLP = ethtypes.SlimAccountRLP
43-
FullAccount = ethtypes.FullAccount
44-
FullAccountRLP = ethtypes.FullAccountRLP
45-
)
46-
4733
type isMultiCoin bool
4834

4935
var (

0 commit comments

Comments
 (0)