chore: fix typos and naming inconsistencies (#25001)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
co-authored by
Alex | Interchain Labs
parent
ef889cdcdf
commit
15cb0ca7ce
@@ -18,7 +18,7 @@ import (
|
||||
)
|
||||
|
||||
// TestRandomizedGenState tests the normal scenario of applying RandomizedGenState.
|
||||
// Abonormal scenarios are not tested here.
|
||||
// Abnormal scenarios are not tested here.
|
||||
func TestRandomizedGenState(t *testing.T) {
|
||||
interfaceRegistry := codectypes.NewInterfaceRegistry()
|
||||
cdc := codec.NewProtoCodec(interfaceRegistry)
|
||||
|
||||
@@ -67,7 +67,7 @@ func (suite *SimTestSuite) TestWeightedOperations() {
|
||||
}
|
||||
|
||||
// TestSimulateMsgSetWithdrawAddress tests the normal scenario of a valid message of type TypeMsgSetWithdrawAddress.
|
||||
// Abonormal scenarios, where the message is created by an errors, are not tested here.
|
||||
// Abnormal scenarios, where the message is created by an errors, are not tested here.
|
||||
func (suite *SimTestSuite) TestSimulateMsgSetWithdrawAddress() {
|
||||
// setup 3 accounts
|
||||
s := rand.NewSource(1)
|
||||
@@ -97,7 +97,7 @@ func (suite *SimTestSuite) TestSimulateMsgSetWithdrawAddress() {
|
||||
|
||||
// TestSimulateMsgWithdrawDelegatorReward tests the normal scenario of a valid message
|
||||
// of type TypeMsgWithdrawDelegatorReward.
|
||||
// Abonormal scenarios, where the message is created by an errors, are not tested here.
|
||||
// Abnormal scenarios, where the message is created by an errors, are not tested here.
|
||||
func (suite *SimTestSuite) TestSimulateMsgWithdrawDelegatorReward() {
|
||||
// setup 3 accounts
|
||||
s := rand.NewSource(4)
|
||||
@@ -143,7 +143,7 @@ func (suite *SimTestSuite) TestSimulateMsgWithdrawDelegatorReward() {
|
||||
|
||||
// TestSimulateMsgWithdrawValidatorCommission tests the normal scenario of a valid message
|
||||
// of type TypeMsgWithdrawValidatorCommission.
|
||||
// Abonormal scenarios, where the message is created by an errors, are not tested here.
|
||||
// Abnormal scenarios, where the message is created by an errors, are not tested here.
|
||||
func (suite *SimTestSuite) TestSimulateMsgWithdrawValidatorCommission() {
|
||||
suite.testSimulateMsgWithdrawValidatorCommission("atoken")
|
||||
suite.testSimulateMsgWithdrawValidatorCommission("tokenxxx")
|
||||
@@ -212,7 +212,7 @@ func (suite *SimTestSuite) testSimulateMsgWithdrawValidatorCommission(tokenName
|
||||
}
|
||||
|
||||
// TestSimulateMsgFundCommunityPool tests the normal scenario of a valid message of type TypeMsgFundCommunityPool.
|
||||
// Abonormal scenarios, where the message is created by an errors, are not tested here.
|
||||
// Abnormal scenarios, where the message is created by an errors, are not tested here.
|
||||
func (suite *SimTestSuite) TestSimulateMsgFundCommunityPool() {
|
||||
// setup 3 accounts
|
||||
s := rand.NewSource(1)
|
||||
@@ -327,7 +327,7 @@ func (suite *SimTestSuite) setupValidatorRewards(valAddress sdk.ValAddress) {
|
||||
decCoins := sdk.DecCoins{sdk.NewDecCoinFromDec(sdk.DefaultBondDenom, math.LegacyOneDec())}
|
||||
historicalRewards := types.NewValidatorHistoricalRewards(decCoins, 2)
|
||||
suite.Require().NoError(suite.distrKeeper.SetValidatorHistoricalRewards(suite.ctx, valAddress, 2, historicalRewards))
|
||||
// setup current revards
|
||||
// setup current rewards
|
||||
currentRewards := types.NewValidatorCurrentRewards(decCoins, 3)
|
||||
suite.Require().NoError(suite.distrKeeper.SetValidatorCurrentRewards(suite.ctx, valAddress, currentRewards))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user