fix: typos (#25343)
Co-authored-by: Alex | Interchain Labs <alex@cosmoslabs.io>
This commit is contained in:
parent
bbdad72117
commit
92f87366b5
@ -382,7 +382,7 @@ func (k BaseKeeper) MintCoins(ctx context.Context, moduleName string, amounts sd
|
||||
return nil
|
||||
}
|
||||
|
||||
// BurnCoins burns coins deletes coins from the balance of the module account.
|
||||
// BurnCoins burns coins from the balance of the module account.
|
||||
// It will panic if the module account does not exist or is unauthorized.
|
||||
func (k BaseKeeper) BurnCoins(ctx context.Context, moduleName string, amounts sdk.Coins) error {
|
||||
acc := k.ak.GetModuleAccount(ctx, moduleName)
|
||||
|
||||
@ -28,7 +28,7 @@ func TestMigrateGenState(t *testing.T) {
|
||||
}},
|
||||
Supply: sdk.Coins{sdk.NewCoin("supplycoin", sdkmath.NewInt(800))},
|
||||
DenomMetadata: []types.Metadata{{
|
||||
Description: "metadesk",
|
||||
Description: "metadesc",
|
||||
DenomUnits: nil,
|
||||
Base: "meta",
|
||||
Display: "meta",
|
||||
@ -47,7 +47,7 @@ func TestMigrateGenState(t *testing.T) {
|
||||
}},
|
||||
Supply: sdk.Coins{sdk.NewCoin("supplycoin", sdkmath.NewInt(800))},
|
||||
DenomMetadata: []types.Metadata{{
|
||||
Description: "metadesk",
|
||||
Description: "metadesc",
|
||||
DenomUnits: nil,
|
||||
Base: "meta",
|
||||
Display: "meta",
|
||||
|
||||
@ -174,7 +174,7 @@ func TestMigrateSendEnabled(t *testing.T) {
|
||||
}},
|
||||
Supply: sdk.Coins{sdk.NewCoin("supplycoin", math.NewInt(800))},
|
||||
DenomMetadata: []Metadata{{
|
||||
Description: "metadesk",
|
||||
Description: "metadesc",
|
||||
DenomUnits: nil,
|
||||
Base: "meta",
|
||||
Display: "meta",
|
||||
@ -192,7 +192,7 @@ func TestMigrateSendEnabled(t *testing.T) {
|
||||
}},
|
||||
Supply: sdk.Coins{sdk.NewCoin("supplycoin", math.NewInt(800))},
|
||||
DenomMetadata: []Metadata{{
|
||||
Description: "metadesk",
|
||||
Description: "metadesc",
|
||||
DenomUnits: nil,
|
||||
Base: "meta",
|
||||
Display: "meta",
|
||||
|
||||
@ -69,5 +69,5 @@ func Test_validateParams(t *testing.T) {
|
||||
assert.NoError(t, DefaultParams().Validate(), "default")
|
||||
assert.NoError(t, NewParams(true).Validate(), "true")
|
||||
assert.NoError(t, NewParams(false).Validate(), "false")
|
||||
assert.Error(t, Params{[]*SendEnabled{{"foocoing", false}}, true}.Validate(), "with SendEnabled entry")
|
||||
assert.Error(t, Params{[]*SendEnabled{{"foocoin", false}}, true}.Validate(), "with SendEnabled entry")
|
||||
}
|
||||
|
||||
@ -391,7 +391,7 @@ func TestNoOpMintingRestrictionFn(t *testing.T) {
|
||||
err = types.NoOpMintingRestrictionFn(sdk.Context{}, sdk.Coins{})
|
||||
}
|
||||
require.NotPanics(t, testFunc, "NoOpMintingRestrictionFn")
|
||||
assert.NoError(t, err, "NoOpSendRestrictionFn error")
|
||||
assert.NoError(t, err, "NoOpMintingRestrictionFn error")
|
||||
}
|
||||
|
||||
// SendRestrictionArgs are the args provided to a SendRestrictionFn function.
|
||||
|
||||
@ -165,7 +165,7 @@ func (s *KeeperTestSuite) TestUpdateParams() {
|
||||
expErrMsg: "",
|
||||
},
|
||||
{
|
||||
name: "invalid params",
|
||||
name: "invalid params",
|
||||
input: &types.MsgUpdateParams{
|
||||
Authority: s.consensusParamsKeeper.GetAuthority(),
|
||||
Block: &cmtproto.BlockParams{MaxGas: -10, MaxBytes: -10},
|
||||
|
||||
@ -54,7 +54,7 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *g
|
||||
}
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers interfaces and implementations of the bank module.
|
||||
// RegisterInterfaces registers interfaces and implementations of the consensus module.
|
||||
func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) {
|
||||
types.RegisterInterfaces(registry)
|
||||
}
|
||||
|
||||
@ -14,7 +14,6 @@ func (k Keeper) BeginBlocker(ctx sdk.Context) error {
|
||||
|
||||
// determine the total power signing the block
|
||||
var previousTotalPower int64
|
||||
// determine the total power signing the block
|
||||
for _, voteInfo := range ctx.VoteInfos() {
|
||||
previousTotalPower += voteInfo.Validator.Power
|
||||
}
|
||||
|
||||
@ -760,7 +760,7 @@ func TestCalculateRewardsMultiDelegatorMultiSlash(t *testing.T) {
|
||||
require.Equal(t, sdk.DecCoins{{Denom: sdk.DefaultBondDenom, Amount: initial}}, valCommission.Commission)
|
||||
}
|
||||
|
||||
func TestCalculateRewardsMultiDelegatorMultWithdraw(t *testing.T) {
|
||||
func TestCalculateRewardsMultiDelegatorMultiWithdraw(t *testing.T) {
|
||||
ctrl := gomock.NewController(t)
|
||||
key := storetypes.NewKVStoreKey(disttypes.StoreKey)
|
||||
storeService := runtime.NewKVStoreService(key)
|
||||
@ -989,7 +989,7 @@ func Test100PercentCommissionReward(t *testing.T) {
|
||||
require.NoError(t, distrKeeper.FeePool.Set(ctx, disttypes.InitialFeePool()))
|
||||
require.NoError(t, distrKeeper.Params.Set(ctx, disttypes.DefaultParams()))
|
||||
|
||||
// create validator with 50% commission
|
||||
// create validator with 100% commission
|
||||
valAddr := sdk.ValAddress(valConsAddr0)
|
||||
addr := sdk.AccAddress(valAddr)
|
||||
val, err := distrtestutil.CreateValidator(valConsPk0, math.NewInt(100))
|
||||
|
||||
@ -147,7 +147,7 @@ func (k msgServer) UpdateParams(ctx context.Context, msg *types.MsgUpdateParams)
|
||||
|
||||
func (k msgServer) CommunityPoolSpend(ctx context.Context, msg *types.MsgCommunityPoolSpend) (*types.MsgCommunityPoolSpendResponse, error) {
|
||||
if k.HasExternalCommunityPool() {
|
||||
return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "external community pool is enabled - use the DistributeFromCommunityPool method exposed by the external community pool")
|
||||
return nil, errors.Wrapf(sdkerrors.ErrInvalidRequest, "external community pool is enabled - use the DistributeFromCommunityPool method exposed by the external community pool")
|
||||
}
|
||||
|
||||
if err := k.validateAuthority(msg.Authority); err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user