From 1a98272fa254a4e4250c85563f04b9ecdb455bf0 Mon Sep 17 00:00:00 2001 From: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Date: Fri, 22 Jan 2021 23:53:08 -0300 Subject: [PATCH] cmd: add genaccount balance to supply (#563) --- CHANGELOG.md | 17 +++++++++++++---- cmd/gaiad/cmd/genaccounts.go | 1 + 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98de94d9067..acf8d317f3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,17 +36,26 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] +### Bug Fixes + +* (cmd) [\#563](https://github.com/cosmos/gaia/pull/563) Add balance coin to supply when adding a new genesis account + ## [v3.0.1] - 2021-01-19 -* (sdk) Bump SDK version to [v0.40.1](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.40.1). -* (tendermint) Bump Tendermint version to [v0.34.3](https://github.com/tendermint/tendermint/releases/tag/v0.34.3). +### Improvements + * (protobuf) [\#553](https://github.com/cosmos/gaia/pull/553) Bump gogo protobuf deps to v1.3.3 -* (starport) [\#535](https://github.com/cosmos/gaia/pull/535) Add config.yml * (github) [\#543](https://github.com/cosmos/gaia/pull/543) Add docker deployment +* (starport) [\#535](https://github.com/cosmos/gaia/pull/535) Add config.yml +* (docker) [\#534](https://github.com/cosmos/gaia/pull/534) Update to python3 + +### Bug Fixes + +* (sdk) Bump SDK version to [v0.40.1](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.40.1). +* (tendermint) Bump Tendermint version to [v0.34.3](https://github.com/tendermint/tendermint/releases/tag/v0.34.3). * (github) [\#544](https://github.com/cosmos/gaia/pull/544) Deploy from main not master * (docs) [\#550](https://github.com/cosmos/gaia/pull/550) Bump vuepress-theme-cosmos to 1.0.180 * (docker) [\#537](https://github.com/cosmos/gaia/pull/537) Fix single-node.sh setup script -* (docker) [\#534](https://github.com/cosmos/gaia/pull/534) Update to python3 ## [v3.0.0] - 2021-01-09 diff --git a/cmd/gaiad/cmd/genaccounts.go b/cmd/gaiad/cmd/genaccounts.go index 8aea0146f28..208e7abe352 100644 --- a/cmd/gaiad/cmd/genaccounts.go +++ b/cmd/gaiad/cmd/genaccounts.go @@ -163,6 +163,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 {