Skip to content

Commit cce11c9

Browse files
committed
fix lint issues
1 parent d37f1a2 commit cce11c9

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ issues:
5252
text: 'SA1019:'
5353
linters:
5454
- staticcheck
55+
- path: ^tests/integration/
56+
linters:
57+
- stylecheck
58+
text: 'ST1001:'
5559
exclude-dirs:
5660
- x/vm/core
5761

ante/evm/fee_checker_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ func TestSDKTxFeeChecker(t *testing.T) {
5858
// with extension option
5959
// without extension option
6060
// london hardfork enableness
61-
chainId := uint64(evmdconfig.EighteenDecimalsChainID)
62-
encodingConfig := encoding.MakeConfig(chainId)
63-
err := evmd.EvmAppOptions(chainId)
61+
chainID := uint64(evmdconfig.EighteenDecimalsChainID)
62+
encodingConfig := encoding.MakeConfig(chainID)
63+
err := evmd.EvmAppOptions(chainID)
6464
require.NoError(t, err)
6565

6666
evmDenom := evmtypes.GetEVMCoinDenom()

tests/integration/eip712/test_eip712_fuzzer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/cosmos/evm/ethereum/eip712"
1313
)
1414

15-
type EIP712FuzzTestParams struct {
15+
type FuzzTestParams struct {
1616
numTestObjects int
1717
maxNumFieldsPerObject int
1818
minStringLength int
@@ -38,7 +38,7 @@ const (
3838
jsonObjectType = iota
3939
)
4040

41-
var params = EIP712FuzzTestParams{
41+
var params = FuzzTestParams{
4242
numTestObjects: 16,
4343
maxNumFieldsPerObject: 16,
4444
minStringLength: 16,

tests/integration/precompiles/bank/test_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/ethereum/go-ethereum/accounts/abi"
55
"github.com/ethereum/go-ethereum/common"
66

7-
//nolint:revive // dot imports are fine for Ginkgo
7+
//nolint:revive,ST1001 // dot imports are fine for Ginkgo
88
. "github.com/onsi/gomega"
99

1010
"github.com/cosmos/evm/precompiles/bank"

tests/integration/precompiles/p256/test_setup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (s *PrecompileTestSuite) SetupTest() {
3838
s.precompile = &p256.Precompile{}
3939
}
4040

41-
func signMsg(msg []byte, priv *ecdsa.PrivateKey) ([]byte, error) { //nolint:thelper
41+
func signMsg(msg []byte, priv *ecdsa.PrivateKey) ([]byte, error) {
4242
hash := crypto.Sha256(msg)
4343

4444
rInt, sInt, err := ecdsa.Sign(rand.Reader, priv, hash)

0 commit comments

Comments
 (0)