Skip to content

Commit 63b9def

Browse files
committed
all automated lint fixes
1 parent bd95c38 commit 63b9def

File tree

167 files changed

+489
-480
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+489
-480
lines changed

graft/coreth/consensus/dummy/consensus.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import (
88
"fmt"
99
"math/big"
1010

11-
"github.com/ava-labs/avalanchego/vms/components/gas"
12-
"github.com/ava-labs/avalanchego/vms/evm/acp226"
1311
"github.com/ava-labs/libevm/common"
1412
"github.com/ava-labs/libevm/core/state"
1513
"github.com/ava-labs/libevm/core/types"
@@ -21,6 +19,8 @@ import (
2119
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/customheader"
2220
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/customtypes"
2321
"github.com/ava-labs/avalanchego/graft/coreth/utils"
22+
"github.com/ava-labs/avalanchego/vms/components/gas"
23+
"github.com/ava-labs/avalanchego/vms/evm/acp226"
2424
)
2525

2626
var (

graft/coreth/core/blockchain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ import (
4141
"sync/atomic"
4242
"time"
4343

44-
"github.com/ava-labs/avalanchego/vms/evm/acp176"
4544
"github.com/ava-labs/avalanchego/graft/coreth/consensus"
4645
"github.com/ava-labs/avalanchego/graft/coreth/core/extstate"
4746
"github.com/ava-labs/avalanchego/graft/coreth/core/state/snapshot"
@@ -52,6 +51,7 @@ import (
5251
"github.com/ava-labs/avalanchego/graft/coreth/triedb/firewood"
5352
"github.com/ava-labs/avalanchego/graft/coreth/triedb/hashdb"
5453
"github.com/ava-labs/avalanchego/graft/coreth/triedb/pathdb"
54+
"github.com/ava-labs/avalanchego/vms/evm/acp176"
5555
"github.com/ava-labs/libevm/common"
5656
"github.com/ava-labs/libevm/common/lru"
5757
"github.com/ava-labs/libevm/consensus/misc/eip4844"

graft/coreth/core/blockchain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ import (
3333
"os"
3434
"testing"
3535

36-
"github.com/ava-labs/avalanchego/upgrade"
3736
"github.com/ava-labs/avalanchego/graft/coreth/consensus/dummy"
3837
"github.com/ava-labs/avalanchego/graft/coreth/core/state/pruner"
3938
"github.com/ava-labs/avalanchego/graft/coreth/params"
4039
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/customrawdb"
4140
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/upgrade/ap3"
41+
"github.com/ava-labs/avalanchego/upgrade"
4242
"github.com/ava-labs/libevm/common"
4343
"github.com/ava-labs/libevm/core/rawdb"
4444
"github.com/ava-labs/libevm/core/types"

graft/coreth/core/extstate/statedb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package extstate
66
import (
77
"math/big"
88

9-
"github.com/ava-labs/avalanchego/vms/evm/predicate"
109
"github.com/ava-labs/libevm/common"
1110
"github.com/ava-labs/libevm/core/state"
1211
"github.com/ava-labs/libevm/core/types"
@@ -16,6 +15,7 @@ import (
1615

1716
"github.com/ava-labs/avalanchego/graft/coreth/params"
1817
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/customtypes"
18+
"github.com/ava-labs/avalanchego/vms/evm/predicate"
1919
)
2020

2121
// RegisterExtras registers hooks with libevm to achieve Avalanche state

graft/coreth/core/genesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ import (
3434
"fmt"
3535
"math/big"
3636

37-
"github.com/ava-labs/avalanchego/vms/evm/acp226"
3837
"github.com/ava-labs/avalanchego/graft/coreth/core/extstate"
3938
"github.com/ava-labs/avalanchego/graft/coreth/params"
4039
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/customtypes"
4140
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/upgrade/ap3"
4241
"github.com/ava-labs/avalanchego/graft/coreth/triedb/pathdb"
42+
"github.com/ava-labs/avalanchego/vms/evm/acp226"
4343
"github.com/ava-labs/libevm/common"
4444
"github.com/ava-labs/libevm/common/hexutil"
4545
"github.com/ava-labs/libevm/common/math"

graft/coreth/core/genesis_extra_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ import (
3232
"testing"
3333
"time"
3434

35-
"github.com/ava-labs/avalanchego/upgrade/upgradetest"
3635
"github.com/ava-labs/avalanchego/graft/coreth/params"
3736
"github.com/ava-labs/avalanchego/graft/coreth/params/extras"
3837
"github.com/ava-labs/avalanchego/graft/coreth/params/paramstest"
3938
"github.com/ava-labs/avalanchego/graft/coreth/utils"
39+
"github.com/ava-labs/avalanchego/upgrade/upgradetest"
4040
"github.com/ava-labs/libevm/common"
4141
"github.com/ava-labs/libevm/core/rawdb"
4242
"github.com/ava-labs/libevm/core/types"

graft/coreth/core/predicate_check.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import (
77
"errors"
88
"fmt"
99

10-
"github.com/ava-labs/avalanchego/utils/set"
11-
"github.com/ava-labs/avalanchego/vms/evm/predicate"
1210
"github.com/ava-labs/libevm/core/types"
1311
"github.com/ava-labs/libevm/log"
1412

1513
"github.com/ava-labs/avalanchego/graft/coreth/params"
1614
"github.com/ava-labs/avalanchego/graft/coreth/precompile/precompileconfig"
15+
"github.com/ava-labs/avalanchego/utils/set"
16+
"github.com/ava-labs/avalanchego/vms/evm/predicate"
1717
)
1818

1919
var ErrMissingPredicateContext = errors.New("missing predicate context")

graft/coreth/core/predicate_check_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import (
99
"slices"
1010
"testing"
1111

12-
"github.com/ava-labs/avalanchego/snow/engine/snowman/block"
13-
"github.com/ava-labs/avalanchego/utils/set"
14-
"github.com/ava-labs/avalanchego/vms/evm/predicate"
1512
"github.com/ava-labs/libevm/common"
1613
"github.com/ava-labs/libevm/core/types"
1714
"github.com/stretchr/testify/require"
1815
"go.uber.org/mock/gomock"
1916

2017
"github.com/ava-labs/avalanchego/graft/coreth/params"
2118
"github.com/ava-labs/avalanchego/graft/coreth/precompile/precompileconfig"
19+
"github.com/ava-labs/avalanchego/snow/engine/snowman/block"
20+
"github.com/ava-labs/avalanchego/utils/set"
21+
"github.com/ava-labs/avalanchego/vms/evm/predicate"
2222
)
2323

2424
var (

graft/coreth/core/state_processor_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ import (
3232
"math/big"
3333
"testing"
3434

35-
"github.com/ava-labs/avalanchego/upgrade"
36-
"github.com/ava-labs/avalanchego/vms/evm/acp176"
3735
"github.com/ava-labs/avalanchego/graft/coreth/consensus"
3836
"github.com/ava-labs/avalanchego/graft/coreth/consensus/dummy"
3937
"github.com/ava-labs/avalanchego/graft/coreth/params"
@@ -44,6 +42,8 @@ import (
4442
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/upgrade/ap3"
4543
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/upgrade/cortina"
4644
"github.com/ava-labs/avalanchego/graft/coreth/utils"
45+
"github.com/ava-labs/avalanchego/upgrade"
46+
"github.com/ava-labs/avalanchego/vms/evm/acp176"
4747
"github.com/ava-labs/libevm/common"
4848
"github.com/ava-labs/libevm/consensus/misc/eip4844"
4949
"github.com/ava-labs/libevm/core/rawdb"

graft/coreth/core/state_transition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ import (
3232
"math"
3333
"math/big"
3434

35-
"github.com/ava-labs/avalanchego/vms/evm/predicate"
3635
"github.com/ava-labs/avalanchego/graft/coreth/params"
36+
"github.com/ava-labs/avalanchego/vms/evm/predicate"
3737
"github.com/ava-labs/libevm/common"
3838
cmath "github.com/ava-labs/libevm/common/math"
3939
"github.com/ava-labs/libevm/core/types"

0 commit comments

Comments
 (0)