Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo in testenv setup #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (env *TestEnv) setupValidator(bondStatus stakingtypes.BondStatus) (*secp256
env.App.BankKeeper.SendCoinsFromModuleToModule(env.Ctx, stakingtypes.NotBondedPoolName, stakingtypes.BondedPoolName, sdk.NewCoins(stakingCoin))

val, found := env.App.StakingKeeper.GetValidator(env.Ctx, valAddr)
requierTrue("validator found", found)
requireTrue("validator found", found)

val = val.UpdateStatus(bondStatus)
env.App.StakingKeeper.SetValidator(env.Ctx, val)
Expand Down Expand Up @@ -288,7 +288,7 @@ func requireNoNil(name string, nilable any) {
}
}

func requierTrue(name string, b bool) {
func requireTrue(name string, b bool) {
if !b {
panic(fmt.Sprintf("%s must be true", name))
}
Expand Down