Skip to content

Commit

Permalink
Merge branch 'master' into ty-8514-module_tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Mar 19, 2021
2 parents d987555 + 129267c commit 5d6e4ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testutil/network/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ func initGenFiles(cfg Config, genAccounts []authtypes.GenesisAccount, genBalance
return err
}

authGenState.Accounts = accounts
authGenState.Accounts = append(authGenState.Accounts, accounts...)
cfg.GenesisState[authtypes.ModuleName] = cfg.Codec.MustMarshalJSON(&authGenState)

// set the balances in the genesis state
var bankGenState banktypes.GenesisState
cfg.Codec.MustUnmarshalJSON(cfg.GenesisState[banktypes.ModuleName], &bankGenState)

bankGenState.Balances = genBalances
bankGenState.Balances = append(bankGenState.Balances, genBalances...)
cfg.GenesisState[banktypes.ModuleName] = cfg.Codec.MustMarshalJSON(&bankGenState)

appGenStateJSON, err := json.MarshalIndent(cfg.GenesisState, "", " ")
Expand Down

0 comments on commit 5d6e4ab

Please sign in to comment.