Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Jul 18, 2024
1 parent 1a29786 commit c069599
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type MiniApp struct {

func init() {
var err error
// clienthelpers.EnvPrefix = "MINI"
clienthelpers.EnvPrefix = "MINI"
DefaultNodeHome, err = clienthelpers.GetNodeHomeDirectory(".minid")
if err != nil {
panic(err)
Expand Down
3 changes: 2 additions & 1 deletion cmd/minid/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"

clienthelpers "cosmossdk.io/client/v2/helpers"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

"github.com/cosmosregistry/chain-minimal/app"
Expand All @@ -15,7 +16,7 @@ func main() {
params.SetAddressPrefixes()

rootCmd := cmd.NewRootCmd()
if err := svrcmd.Execute(rootCmd, "MINI", app.DefaultNodeHome); err != nil {
if err := svrcmd.Execute(rootCmd, clienthelpers.EnvPrefix, app.DefaultNodeHome); err != nil {
fmt.Fprintln(rootCmd.OutOrStderr(), err)
os.Exit(1)
}
Expand Down

0 comments on commit c069599

Please sign in to comment.