Skip to content

Commit

Permalink
test: Fix total supply bug in test util GenesisStateWithValSet (#23072)
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldingli1997 authored Dec 27, 2024
1 parent ef7dbc9 commit 4a533fd
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 4a533fd

Please sign in to comment.