Skip to content

Commit

Permalink
dog has a name
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Oct 22, 2022
1 parent 538050d commit 56a1443
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ var (
// These are the ones we will want to use in the code, based on
// any overrides above

// DefaultNodeHome default home directories for Juno
// DefaultNodeHome default home directories for Chihuahua
DefaultNodeHome = os.ExpandEnv("$HOME/") + NodeDir

// Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
Expand Down
14 changes: 6 additions & 8 deletions cmd/chihuahuad/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
)

// NewRootCmd creates a new root command for junod. It is called once in the
// NewRootCmd creates a new root command for chihuahuad. It is called once in the
// main function.
func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
encodingConfig := app.MakeEncodingConfig()
Expand All @@ -64,7 +64,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {

rootCmd := &cobra.Command{
Use: version.AppName,
Short: "Juno Smart Contract Zone",
Short: "Chihuahua is just a stupid dog",
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
// set the default command outputs
cmd.SetOut(cmd.OutOrStdout())
Expand Down Expand Up @@ -224,8 +224,6 @@ func (ac appCreator) newApp(
cast.ToUint(appOpts.Get(server.FlagInvCheckPeriod)),
ac.encCfg,
app.GetEnabledProposals(),
appOpts,
wasmOpts,
baseapp.SetPruning(pruningOpts),
baseapp.SetMinGasPrices(cast.ToString(appOpts.Get(server.FlagMinGasPrices))),
baseapp.SetHaltHeight(cast.ToUint64(appOpts.Get(server.FlagHaltHeight))),
Expand All @@ -251,15 +249,15 @@ func (ac appCreator) appExport(
jailAllowedAddrs []string,
appOpts servertypes.AppOptions,
) (servertypes.ExportedApp, error) {
var junoApp *app.App
var App *app.App
homePath, ok := appOpts.Get(flags.FlagHome).(string)
if !ok || homePath == "" {
return servertypes.ExportedApp{}, errors.New("application home is not set")
}

loadLatest := height == -1
var emptyWasmOpts []wasm.Option
junoApp = app.New(
App = app.New(
logger,
db,
traceStore,
Expand All @@ -274,10 +272,10 @@ func (ac appCreator) appExport(
)

if height != -1 {
if err := junoApp.LoadHeight(height); err != nil {
if err := App.LoadHeight(height); err != nil {
return servertypes.ExportedApp{}, err
}
}

return junoApp.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs)
return App.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs)
}

0 comments on commit 56a1443

Please sign in to comment.