Merge PR #4852: Cleanup Supply Genesis State

This commit is contained in:
Alexander Bezobchuk
2019-08-06 16:51:18 -04:00
committed by GitHub
parent c8ee82b40a
commit 0dcf158387
5 changed files with 13 additions and 18 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ func GenBankGenesisState(cdc *codec.Codec, r *rand.Rand, ap simulation.AppParams
func GenSupplyGenesisState(cdc *codec.Codec, amount, numInitiallyBonded, numAccs int64, genesisState map[string]json.RawMessage) {
totalSupply := sdk.NewInt(amount * (numAccs + numInitiallyBonded))
supplyGenesis := supply.NewGenesisState(
supply.NewSupply(sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, totalSupply))),
sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, totalSupply)),
)
fmt.Printf("Generated supply parameters:\n%s\n", codec.MustMarshalJSONIndent(cdc, supplyGenesis))