From e777538e1bea95c04901a14e39703decfb847ac8 Mon Sep 17 00:00:00 2001 From: Abel Armoa <30988000+aarmoa@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:27:43 -0300 Subject: [PATCH] (fix) Fixed pre-commit check issue --- client/chain/chain_test.go | 5 +++-- client/chain/ofac.go | 2 +- client/chain/ofac_test.go | 7 ++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/client/chain/chain_test.go b/client/chain/chain_test.go index 4a0c79a1..48b24378 100644 --- a/client/chain/chain_test.go +++ b/client/chain/chain_test.go @@ -1,12 +1,13 @@ package chain_test import ( + "os" + "testing" + rpchttp "github.com/cometbft/cometbft/rpc/client/http" "github.com/cosmos/cosmos-sdk/crypto/keyring" cosmtypes "github.com/cosmos/cosmos-sdk/types" eth "github.com/ethereum/go-ethereum/common" - "os" - "testing" "github.com/InjectiveLabs/sdk-go/client" "github.com/InjectiveLabs/sdk-go/client/chain" diff --git a/client/chain/ofac.go b/client/chain/ofac.go index 32b5fa66..6ae77c16 100644 --- a/client/chain/ofac.go +++ b/client/chain/ofac.go @@ -53,7 +53,7 @@ func DownloadOfacList() error { return fmt.Errorf("failed to download OFAC list, status code: %d", resp.StatusCode) } - if err := os.MkdirAll(OfacListPath, 0755); err != nil { + if err := os.MkdirAll(OfacListPath, 0755); err != nil { // nolint:gocritic // 0755 is the correct permission return err } outFile, err := os.Create(GetOfacListPath()) diff --git a/client/chain/ofac_test.go b/client/chain/ofac_test.go index ed950a77..cc02c8e0 100644 --- a/client/chain/ofac_test.go +++ b/client/chain/ofac_test.go @@ -2,6 +2,10 @@ package chain_test import ( "encoding/json" + "io" + "os" + "testing" + "github.com/InjectiveLabs/sdk-go/client" "github.com/InjectiveLabs/sdk-go/client/chain" "github.com/InjectiveLabs/sdk-go/client/common" @@ -9,9 +13,6 @@ import ( "github.com/cosmos/cosmos-sdk/crypto/keyring" cosmtypes "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/suite" - "io" - "os" - "testing" ) type OfacTestSuite struct {