Skip to content

Commit 3d3b5dd

Browse files
authored
nicee (#787)
1 parent 7998121 commit 3d3b5dd

File tree

37 files changed

+90
-124
lines changed

37 files changed

+90
-124
lines changed

evmd/genesis.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package evmd
22

33
import (
44
"encoding/json"
5+
56
testconstants "github.com/cosmos/evm/testutil/constants"
67
erc20types "github.com/cosmos/evm/x/erc20/types"
78
feemarkettypes "github.com/cosmos/evm/x/feemarket/types"

evmd/test_helpers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package evmd
33
import (
44
"encoding/json"
55
"fmt"
6+
"testing"
7+
68
"github.com/cosmos/evm/evmd/config"
79
"github.com/cosmos/evm/testutil/integration/evm/network"
810
"github.com/cosmos/evm/x/vm/types"
9-
"testing"
1011

1112
"github.com/stretchr/testify/require"
1213

evmd/tests/ibc/ics20_recursive_precompile_calls_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (suite *ICS20RecursivePrecompileCallsTestSuite) SetupTest() {
225225
suite.Require().NoError(err)
226226

227227
evmAppA.Erc20Keeper.GetTokenPair(suite.chainA.GetContext(), evmAppA.Erc20Keeper.GetTokenPairID(suite.chainA.GetContext(), bondDenom))
228-
//evmAppA.Erc20Keeper.SetNativePrecompile(suite.chainA.GetContext(), werc20.Address())
228+
// evmAppA.Erc20Keeper.SetNativePrecompile(suite.chainA.GetContext(), werc20.Address())
229229

230230
avail := evmAppA.Erc20Keeper.IsNativePrecompileAvailable(suite.chainA.GetContext(), common.HexToAddress("0xD4949664cD82660AaE99bEdc034a0deA8A0bd517"))
231231
suite.Require().True(avail)
@@ -452,7 +452,7 @@ func (suite *ICS20RecursivePrecompileCallsTestSuite) TestHandleMsgTransfer() {
452452
relayerBalance := GetBalance(relayerAddr)
453453

454454
// relay send
455-
pathAToB.EndpointA.Chain.SenderAccount = evmAppA.AccountKeeper.GetAccount(suite.chainA.GetContext(), relayerAddr) //update account in the path as the sequence recorded in that object is out of date
455+
pathAToB.EndpointA.Chain.SenderAccount = evmAppA.AccountKeeper.GetAccount(suite.chainA.GetContext(), relayerAddr) // update account in the path as the sequence recorded in that object is out of date
456456
err = pathAToB.RelayPacket(packet)
457457
suite.Require().NoError(err) // relay committed
458458

evmd/tests/integration/balance_handler/balance_handler_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package balancehandler
22

33
import (
44
"fmt"
5-
65
"math/big"
76
"testing"
87

evmd/tests/integration/balance_handler/helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
errorsmod "cosmossdk.io/errors"
1111

1212
"github.com/cosmos/evm"
13-
testutiltypes "github.com/cosmos/evm/testutil/types"
1413
evmibctesting "github.com/cosmos/evm/testutil/ibc"
14+
testutiltypes "github.com/cosmos/evm/testutil/types"
1515
)
1616

1717
// DeployContract deploys a contract to the test chain

evmd/tests/integration/create_app.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package integration
22

33
import (
44
"encoding/json"
5+
56
"github.com/cosmos/cosmos-sdk/client/flags"
67

78
dbm "github.com/cosmos/cosmos-db"

evmd/tests/integration/eips/eips_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package eips_test
22

33
import (
4+
"testing"
5+
46
"github.com/cosmos/evm/evmd/tests/integration"
57
"github.com/cosmos/evm/tests/integration/eips"
6-
"testing"
78
//nolint:revive // dot imports are fine for Ginkgo
89
//nolint:revive // dot imports are fine for Ginkgo
910
)

evmd/tests/testdata/debug/interface.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package debug
22

33
import (
4+
"math/big"
5+
46
sdk "github.com/cosmos/cosmos-sdk/types"
57
evmtypes "github.com/cosmos/evm/x/vm/types"
68
"github.com/ethereum/go-ethereum/accounts/abi"
79
"github.com/ethereum/go-ethereum/common"
8-
"math/big"
910
)
1011

1112
type EVMKeeper interface {

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ require (
109109
github.com/bytedance/sonic/loader v0.3.0 // indirect
110110
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
111111
github.com/cespare/xxhash/v2 v2.3.0 // indirect
112+
github.com/chigopher/pathlib v0.19.1 // indirect
112113
github.com/chzyer/readline v1.5.1 // indirect
113114
github.com/cloudwego/base64x v0.1.5 // indirect
114115
github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443 // indirect
@@ -183,10 +184,12 @@ require (
183184
github.com/hdevalence/ed25519consensus v0.2.0 // indirect
184185
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
185186
github.com/huandu/skiplist v1.2.1 // indirect
187+
github.com/huandu/xstrings v1.4.0 // indirect
186188
github.com/huin/goupnp v1.3.0 // indirect
187189
github.com/iancoleman/strcase v0.3.0 // indirect
188190
github.com/inconshreveable/mousetrap v1.1.0 // indirect
189191
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
192+
github.com/jinzhu/copier v0.4.0 // indirect
190193
github.com/jmhodges/levigo v1.0.0 // indirect
191194
github.com/klauspost/compress v1.18.0 // indirect
192195
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
@@ -243,6 +246,7 @@ require (
243246
github.com/tklauser/numcpus v0.10.0 // indirect
244247
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
245248
github.com/ulikunitz/xz v0.5.15 // indirect
249+
github.com/vektra/mockery/v2 v2.53.5 // indirect
246250
github.com/yusufpapurcu/wmi v1.2.4 // indirect
247251
github.com/zeebo/errs v1.4.0 // indirect
248252
github.com/zondax/golem v0.27.0 // indirect
@@ -264,6 +268,7 @@ require (
264268
go.yaml.in/yaml/v3 v3.0.4 // indirect
265269
golang.org/x/arch v0.21.0 // indirect
266270
golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6 // indirect
271+
golang.org/x/mod v0.28.0 // indirect
267272
golang.org/x/oauth2 v0.31.0 // indirect
268273
golang.org/x/sys v0.37.0 // indirect
269274
golang.org/x/term v0.36.0 // indirect

go.sum

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UF
204204
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
205205
github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY=
206206
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk=
207+
github.com/chigopher/pathlib v0.19.1 h1:RoLlUJc0CqBGwq239cilyhxPNLXTK+HXoASGyGznx5A=
208+
github.com/chigopher/pathlib v0.19.1/go.mod h1:tzC1dZLW8o33UQpWkNkhvPwL5n4yyFRFm/jL1YGWFvY=
207209
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
208210
github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM=
209211
github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ=
@@ -600,6 +602,8 @@ github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3
600602
github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U=
601603
github.com/huandu/skiplist v1.2.1 h1:dTi93MgjwErA/8idWTzIw4Y1kZsMWx35fmI2c8Rij7w=
602604
github.com/huandu/skiplist v1.2.1/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w=
605+
github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU=
606+
github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
603607
github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg=
604608
github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc=
605609
github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8=
@@ -623,6 +627,8 @@ github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M
623627
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
624628
github.com/jhump/protoreflect v1.17.0 h1:qOEr613fac2lOuTgWN4tPAtLL7fUSbuJL5X5XumQh94=
625629
github.com/jhump/protoreflect v1.17.0/go.mod h1:h9+vUUL38jiBzck8ck+6G/aeMX8Z4QUY/NiJPwPNi+8=
630+
github.com/jinzhu/copier v0.4.0 h1:w3ciUoD19shMCRargcpm0cm91ytaBhDvuRpz1ODO/U8=
631+
github.com/jinzhu/copier v0.4.0/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg=
626632
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
627633
github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U=
628634
github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ=
@@ -979,6 +985,8 @@ github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY=
979985
github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
980986
github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w=
981987
github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
988+
github.com/vektra/mockery/v2 v2.53.5 h1:iktAY68pNiMvLoHxKqlSNSv/1py0QF/17UGrrAMYDI8=
989+
github.com/vektra/mockery/v2 v2.53.5/go.mod h1:hIFFb3CvzPdDJJiU7J4zLRblUMv7OuezWsHPmswriwo=
982990
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
983991
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
984992
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM=
@@ -1089,6 +1097,8 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
10891097
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
10901098
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
10911099
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
1100+
golang.org/x/mod v0.28.0 h1:gQBtGhjxykdjY9YhZpSlZIsbnaE2+PgjfLWUQTnoZ1U=
1101+
golang.org/x/mod v0.28.0/go.mod h1:yfB/L0NOf/kmEbXjzCPOx1iK1fRutOydrCMsqRhEBxI=
10921102
golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
10931103
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
10941104
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=

0 commit comments

Comments
 (0)