refactor: remove cometbft/libs/cli import (#15673)

This commit is contained in:
Julien Robert
2023-04-03 14:48:02 +00:00
committed by GitHub
parent f69fdad424
commit c1974e4b3c
21 changed files with 72 additions and 84 deletions
+2 -2
View File
@@ -4,10 +4,10 @@ import (
"context"
"fmt"
cli2 "github.com/cometbft/cometbft/libs/cli"
"github.com/spf13/cobra"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/testutil"
"github.com/cosmos/cosmos-sdk/x/bank/client/cli"
)
@@ -37,7 +37,7 @@ func MsgSendExec(clientCtx client.Context, from, to, amount fmt.Stringer, extraA
}
func QueryBalancesExec(clientCtx client.Context, address fmt.Stringer, extraArgs ...string) (testutil.BufferWriter, error) {
args := []string{address.String(), fmt.Sprintf("--%s=json", cli2.OutputFlag)}
args := []string{address.String(), fmt.Sprintf("--%s=json", flags.FlagOutput)}
args = append(args, extraArgs...)
return ExecTestCLICmd(clientCtx, cli.GetBalancesCmd(), args)