From f95fe959181e9df13657b3a8007a333ae5bcb314 Mon Sep 17 00:00:00 2001 From: javiersuweijie Date: Thu, 30 May 2024 15:41:59 +0800 Subject: [PATCH] fix: fmt --- app/custom_queriers/custom_queriers.go | 6 ++++-- x/tokenfactory/bindings/wasm.go | 1 - x/tokenfactory/keeper/bankactions.go | 6 ++++-- x/tokenfactory/keeper/keeper.go | 1 + x/tokenfactory/keeper/msg_server_test.go | 3 ++- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/custom_queriers/custom_queriers.go b/app/custom_queriers/custom_queriers.go index 5318a798..b5b9e547 100644 --- a/app/custom_queriers/custom_queriers.go +++ b/app/custom_queriers/custom_queriers.go @@ -3,14 +3,16 @@ package custom_queriers import ( "encoding/json" "fmt" + "strings" + "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" - bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" alliancebindings "github.com/terra-money/alliance/x/alliance/bindings" alliancekeeper "github.com/terra-money/alliance/x/alliance/keeper" tokenfactorybindings "github.com/terra-money/core/v2/x/tokenfactory/bindings" tokenfactorykeeper "github.com/terra-money/core/v2/x/tokenfactory/keeper" - "strings" + + bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/tokenfactory/bindings/wasm.go b/x/tokenfactory/bindings/wasm.go index e0dd9d4b..95f91744 100644 --- a/x/tokenfactory/bindings/wasm.go +++ b/x/tokenfactory/bindings/wasm.go @@ -1,2 +1 @@ package bindings - diff --git a/x/tokenfactory/keeper/bankactions.go b/x/tokenfactory/keeper/bankactions.go index dd928430..88f87e24 100644 --- a/x/tokenfactory/keeper/bankactions.go +++ b/x/tokenfactory/keeper/bankactions.go @@ -1,10 +1,12 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" + "sort" + "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "sort" + + sdk "github.com/cosmos/cosmos-sdk/types" errorsmod "cosmossdk.io/errors" customterratypes "github.com/terra-money/core/v2/x/bank/types" diff --git a/x/tokenfactory/keeper/keeper.go b/x/tokenfactory/keeper/keeper.go index cda80e2e..8660eb11 100644 --- a/x/tokenfactory/keeper/keeper.go +++ b/x/tokenfactory/keeper/keeper.go @@ -2,6 +2,7 @@ package keeper import ( "fmt" + "github.com/cosmos/cosmos-sdk/codec" "github.com/cometbft/cometbft/libs/log" diff --git a/x/tokenfactory/keeper/msg_server_test.go b/x/tokenfactory/keeper/msg_server_test.go index 4ae109b0..d89460d0 100644 --- a/x/tokenfactory/keeper/msg_server_test.go +++ b/x/tokenfactory/keeper/msg_server_test.go @@ -2,9 +2,10 @@ package keeper_test import ( "fmt" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" "testing" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/stretchr/testify/suite" "github.com/terra-money/core/v2/x/tokenfactory/types"