Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgooz committed Nov 18, 2021
1 parent 6b6c6fc commit a6dc3fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
14 changes: 0 additions & 14 deletions starport/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import (
"github.com/spf13/cobra"
flag "github.com/spf13/pflag"
"github.com/tendermint/starport/starport/internal/version"
"github.com/tendermint/starport/starport/pkg/clispinner"
"github.com/tendermint/starport/starport/pkg/cosmosver"
"github.com/tendermint/starport/starport/pkg/events"
"github.com/tendermint/starport/starport/pkg/gitpod"
"github.com/tendermint/starport/starport/pkg/goenv"
"github.com/tendermint/starport/starport/pkg/xgenny"
Expand Down Expand Up @@ -77,18 +75,6 @@ func logLevel(cmd *cobra.Command) chain.LogLvl {
return chain.LogRegular
}

func printEvents(bus events.Bus, s *clispinner.Spinner) {
for event := range bus {
if event.IsOngoing() {
s.SetText(event.Text())
s.Start()
} else {
s.Stop()
fmt.Printf("%s %s\n", color.New(color.FgGreen).SprintFunc()("✔"), event.Description)
}
}
}

func flagSetPath(cmd *cobra.Command) {
cmd.PersistentFlags().StringP(flagPath, "p", ".", "path of the app")
}
Expand Down
8 changes: 5 additions & 3 deletions starport/pkg/cosmosclient/cosmosclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ func WithUseFaucet(faucetAddress, denom string, minAmount int64) Option {
// New creates a new client with given options.
func New(ctx context.Context, options ...Option) (Client, error) {
c := Client{
nodeAddress: defaultNodeAddress,
addressPrefix: "cosmos",
out: io.Discard,
nodeAddress: defaultNodeAddress,
keyringBackend: cosmosaccount.KeyringTest,
addressPrefix: "cosmos",
out: io.Discard,
}

var err error
Expand Down Expand Up @@ -171,6 +172,7 @@ func New(ctx context.Context, options ...Option) (Client, error) {
c.AccountRegistry, err = cosmosaccount.New(
cosmosaccount.WithKeyringServiceName(c.keyringServiceName),
cosmosaccount.WithKeyringBackend(c.keyringBackend),
cosmosaccount.WithHome(c.homePath),
)
if err != nil {
return Client{}, err
Expand Down
2 changes: 1 addition & 1 deletion starport/templates/app/stargate/go.mod.plush
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module <%= ModulePath %>

go 1.17
go 1.16

require (
github.com/cosmos/cosmos-sdk v0.44.3
Expand Down

0 comments on commit a6dc3fa

Please sign in to comment.