Skip to content

Commit e79fc69

Browse files
authored
fix: default genesis state (arkeonetwork#285)
1 parent 7c49039 commit e79fc69

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

app/genesis.go

+1-17
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"encoding/json"
55

66
"github.com/cosmos/cosmos-sdk/codec"
7-
"github.com/cosmos/cosmos-sdk/types"
8-
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
97
)
108

119
// The genesis state of the blockchain is represented here as a map of raw json
@@ -19,19 +17,5 @@ type GenesisState map[string]json.RawMessage
1917

2018
// NewDefaultGenesisState generates the default state for the application.
2119
func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState {
22-
defaultGenesis := ModuleBasics.DefaultGenesis(cdc)
23-
24-
// set mint module params for genesis state
25-
mintGen := minttypes.GenesisState{
26-
Params: minttypes.Params{
27-
MintDenom: "uarkeo",
28-
InflationRateChange: types.NewDec(0),
29-
InflationMax: types.NewDec(0),
30-
InflationMin: types.NewDec(0),
31-
GoalBonded: types.NewDec(670000000000000000),
32-
BlocksPerYear: 6311520,
33-
},
34-
}
35-
defaultGenesis[minttypes.ModuleName] = cdc.MustMarshalJSON(&mintGen)
36-
return defaultGenesis
20+
return ModuleBasics.DefaultGenesis(cdc)
3721
}

0 commit comments

Comments
 (0)