Skip to content

Commit

Permalink
simapp: increase supply balance when adding genaccount (cosmos#8418)
Browse files Browse the repository at this point in the history
* simapp: increase supply balance when adding genaccount

* changelog
  • Loading branch information
fedekunze authored Jan 24, 2021
1 parent 7b3bf57 commit 9b61f77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions simd/cmd/genaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa
bankGenState := banktypes.GetGenesisStateFromAppState(depCdc, appState)
bankGenState.Balances = append(bankGenState.Balances, balances)
bankGenState.Balances = banktypes.SanitizeGenesisBalances(bankGenState.Balances)
bankGenState.Supply = bankGenState.Supply.Add(balances.Coins...)

bankGenStateBz, err := cdc.MarshalJSON(bankGenState)
if err != nil {
Expand Down

0 comments on commit 9b61f77

Please sign in to comment.