Skip to content

Commit

Permalink
Swap to AppGenesisFromFile as per Cosmos upgrade guide https://docs.c…
Browse files Browse the repository at this point in the history
  • Loading branch information
lcwik committed Dec 18, 2023
1 parent b37130f commit 5e4bced
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protocol/cmd/dydxprotocold/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"cosmossdk.io/store/snapshots"
snapshottypes "cosmossdk.io/store/snapshots/types"
tmcli "github.com/cometbft/cometbft/libs/cli"
tmtypes "github.com/cometbft/cometbft/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -289,7 +288,7 @@ func (a appCreator) newApp(
chainID := cast.ToString(appOpts.Get(flags.FlagChainID))
if chainID == "" {
// fallback to genesis chain-id
appGenesis, err := tmtypes.GenesisDocFromFile(filepath.Join(homeDir, "config", "genesis.json"))
appGenesis, err := genutiltypes.AppGenesisFromFile(filepath.Join(homeDir, "config", "genesis.json"))
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 5e4bced

Please sign in to comment.