Skip to content

Commit

Permalink
Fix total supply bug in GenesisStateWithValSet
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldingli1997 committed Dec 24, 2024
1 parent 8ef2f8d commit 715d88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testutil/sims/app_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func GenesisStateWithValSet(
// add bonded amount to bonded pool module account
balances = append(balances, banktypes.Balance{
Address: authtypes.NewModuleAddress(stakingtypes.BondedPoolName).String(),
Coins: sdk.Coins{sdk.NewCoin(sdk.DefaultBondDenom, bondAmt)},
Coins: sdk.Coins{sdk.NewCoin(sdk.DefaultBondDenom, bondAmt.MulRaw(int64(len(delegations))))},
})

// update total supply
Expand Down

0 comments on commit 715d88b

Please sign in to comment.