chore: lint v2 (#24118)

This commit is contained in:
Alex | Interchain Labs
2025-03-25 15:57:24 +00:00
committed by GitHub
parent 9acd7716dd
commit b7a20b81f6
87 changed files with 298 additions and 288 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func TestBeginBlocker(t *testing.T) {
)
require.NoError(t, err)
ctx := app.BaseApp.NewContext(false)
ctx := app.NewContext(false)
pks := simtestutil.CreateTestPubKeys(1)
simtestutil.AddTestAddrsFromPubKeys(bankKeeper, stakingKeeper, ctx, pks, stakingKeeper.TokensFromConsensusPower(ctx, 200))
+1 -1
View File
@@ -103,7 +103,7 @@ func TestSlashingMsgs(t *testing.T) {
require.True(math.IntEq(t, bondTokens, validator.BondedTokens()))
unjailMsg := &types.MsgUnjail{ValidatorAddr: sdk.ValAddress(addr1).String()}
ctxCheck = app.BaseApp.NewContext(true)
ctxCheck = app.NewContext(true)
_, err = slashingKeeper.GetValidatorSigningInfo(ctxCheck, sdk.ConsAddress(valAddr))
require.NoError(t, err)
+1 -1
View File
@@ -38,7 +38,7 @@ func TestSlashRedelegation(t *testing.T) {
require.NoError(t, err)
// get sdk context, staking msg server and bond denom
ctx := app.BaseApp.NewContext(false)
ctx := app.NewContext(false)
stakingMsgServer := stakingkeeper.NewMsgServerImpl(stakingKeeper)
bondDenom, err := stakingKeeper.BondDenom(ctx)
require.NoError(t, err)
+1 -1
View File
@@ -99,7 +99,7 @@ func (suite *SimTestSuite) SetupTest() {
suite.Require().NoError(err)
suite.app = app
suite.ctx = app.BaseApp.NewContext(false)
suite.ctx = app.NewContext(false)
// remove genesis validator account
suite.accounts = accounts[1:]