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 {