From a3c91dbafb91d62177111e9df5c1c158a12904de Mon Sep 17 00:00:00 2001 From: Murali Krishna Komatireddy <43192592+0xmuralik@users.noreply.github.com> Date: Tue, 18 Oct 2022 16:54:54 +0530 Subject: [PATCH] fix(testutils): fix blank bank genesis params (#1379) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> --- testutil/network/util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testutil/network/util.go b/testutil/network/util.go index 8a7ee229..6d3d3d0c 100644 --- a/testutil/network/util.go +++ b/testutil/network/util.go @@ -197,6 +197,8 @@ func initGenFiles(cfg Config, genAccounts []authtypes.GenesisAccount, genBalance // set the balances in the genesis state var bankGenState banktypes.GenesisState + cfg.Codec.MustUnmarshalJSON(cfg.GenesisState[banktypes.ModuleName], &bankGenState) + bankGenState.Balances = genBalances cfg.GenesisState[banktypes.ModuleName] = cfg.Codec.MustMarshalJSON(&bankGenState)