Skip to content

Commit

Permalink
fix: simapp
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianToledano committed Apr 4, 2024
1 parent a0b1ce7 commit 9fb6831
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion simapp/simd/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,10 @@ func initGenFiles(
var bankGenState banktypes.GenesisState
clientCtx.Codec.MustUnmarshalJSON(appGenState[banktypes.ModuleName], &bankGenState)

bankGenState.Balances = banktypes.SanitizeGenesisBalances(genBalances)
bankGenState.Balances, err = banktypes.SanitizeGenesisBalances(genBalances, clientCtx.AddressCodec)
if err != nil {
return err
}
for _, bal := range bankGenState.Balances {
bankGenState.Supply = bankGenState.Supply.Add(bal.Coins...)
}
Expand Down

0 comments on commit 9fb6831

Please sign in to comment.