Skip to content

Commit 353da27

Browse files
committed
fix(app): use genesis loader from cosmos sdk
Signed-off-by: Artur Troian <[email protected]>
1 parent 90e8fdc commit 353da27

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/akash/cmd/app_creator.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import (
66
"path/filepath"
77

88
"cosmossdk.io/store"
9+
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
910
"github.com/spf13/cast"
1011
"github.com/spf13/viper"
1112

12-
tmtypes "github.com/cometbft/cometbft/types"
13-
1413
"cosmossdk.io/log"
1514
"cosmossdk.io/store/snapshots"
1615
snapshottypes "cosmossdk.io/store/snapshots/types"
@@ -57,7 +56,7 @@ func (a appCreator) newApp(
5756
if chainID == "" {
5857
// fallback to genesis chain-id
5958
genDocFile := filepath.Join(homeDir, cast.ToString(appOpts.Get("genesis_file")))
60-
appGenesis, err := tmtypes.GenesisDocFromFile(genDocFile)
59+
appGenesis, err := genutiltypes.AppGenesisFromFile(genDocFile)
6160
if err != nil {
6261
panic(err)
6362
}

0 commit comments

Comments
 (0)