From d64bc936a439b58c1b56ee5e658aff3261a03952 Mon Sep 17 00:00:00 2001 From: abel Date: Tue, 5 Mar 2024 14:51:51 -0300 Subject: [PATCH] (fix) Fixed pre-commit issues --- client/chain/chain.go | 3 ++- client/chain/chain_test_support.go | 3 ++- examples/chain/distribution/1_SetWithdrawAddress/example.go | 3 ++- .../distribution/3_WithdrawValidatorCommission/example.go | 3 ++- examples/chain/distribution/4_FundCommunityPool/example.go | 3 ++- .../chain/distribution/query/4_ValidatorSlashes/example.go | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/client/chain/chain.go b/client/chain/chain.go index ada8f805..0e405c1d 100644 --- a/client/chain/chain.go +++ b/client/chain/chain.go @@ -6,7 +6,6 @@ import ( "encoding/hex" "encoding/json" "fmt" - distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types" "math" "os" "strconv" @@ -15,6 +14,8 @@ import ( "sync/atomic" "time" + distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/cosmos/cosmos-sdk/types/query" "google.golang.org/grpc/credentials/insecure" diff --git a/client/chain/chain_test_support.go b/client/chain/chain_test_support.go index 06bc95e8..850fe883 100644 --- a/client/chain/chain_test_support.go +++ b/client/chain/chain_test_support.go @@ -3,9 +3,10 @@ package chain import ( "context" "errors" - distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types" "time" + distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types" + tokenfactorytypes "github.com/InjectiveLabs/sdk-go/chain/tokenfactory/types" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" diff --git a/examples/chain/distribution/1_SetWithdrawAddress/example.go b/examples/chain/distribution/1_SetWithdrawAddress/example.go index 387cdc2f..7e0d371c 100644 --- a/examples/chain/distribution/1_SetWithdrawAddress/example.go +++ b/examples/chain/distribution/1_SetWithdrawAddress/example.go @@ -3,9 +3,10 @@ package main import ( "encoding/json" "fmt" - "github.com/cosmos/cosmos-sdk/x/distribution/types" "os" + "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/InjectiveLabs/sdk-go/client" chainclient "github.com/InjectiveLabs/sdk-go/client/chain" "github.com/InjectiveLabs/sdk-go/client/common" diff --git a/examples/chain/distribution/3_WithdrawValidatorCommission/example.go b/examples/chain/distribution/3_WithdrawValidatorCommission/example.go index b421df61..85efe852 100644 --- a/examples/chain/distribution/3_WithdrawValidatorCommission/example.go +++ b/examples/chain/distribution/3_WithdrawValidatorCommission/example.go @@ -3,9 +3,10 @@ package main import ( "encoding/json" "fmt" - "github.com/cosmos/cosmos-sdk/x/distribution/types" "os" + "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/InjectiveLabs/sdk-go/client" chainclient "github.com/InjectiveLabs/sdk-go/client/chain" "github.com/InjectiveLabs/sdk-go/client/common" diff --git a/examples/chain/distribution/4_FundCommunityPool/example.go b/examples/chain/distribution/4_FundCommunityPool/example.go index 2861484f..9c2c9aeb 100644 --- a/examples/chain/distribution/4_FundCommunityPool/example.go +++ b/examples/chain/distribution/4_FundCommunityPool/example.go @@ -3,9 +3,10 @@ package main import ( "encoding/json" "fmt" + "os" + "github.com/cosmos/cosmos-sdk/types" distriutiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types" - "os" "github.com/InjectiveLabs/sdk-go/client" chainclient "github.com/InjectiveLabs/sdk-go/client/chain" diff --git a/examples/chain/distribution/query/4_ValidatorSlashes/example.go b/examples/chain/distribution/query/4_ValidatorSlashes/example.go index 9749277e..19fb4624 100644 --- a/examples/chain/distribution/query/4_ValidatorSlashes/example.go +++ b/examples/chain/distribution/query/4_ValidatorSlashes/example.go @@ -4,9 +4,10 @@ import ( "context" "encoding/json" "fmt" - "github.com/cosmos/cosmos-sdk/types/query" "os" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/InjectiveLabs/sdk-go/client" chainclient "github.com/InjectiveLabs/sdk-go/client/chain" "github.com/InjectiveLabs/sdk-go/client/common"