Skip to content

Commit

Permalink
fix: correct misspell (#6869)
Browse files Browse the repository at this point in the history
  • Loading branch information
BabyHalimao authored Nov 13, 2023
1 parent 5fe9f91 commit d959f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/valset-pref/simulation/sim_msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func RandomMsgReDelegateToValSet(k valsetkeeper.Keeper, sim *osmosimtypes.SimCtx
}

if sim.SDKStakingKeeper().HasReceivingRedelegation(ctx, delAddr, val) {
return nil, fmt.Errorf("receveing redelegation is not allowed for target validators")
return nil, fmt.Errorf("receiving redelegation is not allowed for target validators")
}
}

Expand Down Expand Up @@ -193,7 +193,7 @@ func GetRandomValAndWeights(ctx sdk.Context, k valsetkeeper.Keeper, sim *osmosim
}

if !totalWeight.Equal(osmomath.OneDec()) {
return nil, fmt.Errorf("generated weights donot equal 1 got: %d", totalWeight)
return nil, fmt.Errorf("generated weights do not equal 1 got: %d", totalWeight)
}

return preferences, nil
Expand Down

0 comments on commit d959f61

Please sign in to comment.