@@ -79,7 +79,7 @@ func TestSlashUnbondingDelegation(t *testing.T) {
7979 // set an unbonding delegation with expiration timestamp (beyond which the
8080 // unbonding delegation shouldn't be slashed)
8181 ubd := types .NewUnbondingDelegation (addrDels [0 ], addrVals [0 ], 0 ,
82- time .Unix (5 , 0 ), math .NewInt (10 ), 0 , address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
82+ time .Unix (5 , 0 ), math .NewInt (10 ), address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
8383
8484 assert .NilError (t , f .stakingKeeper .SetUnbondingDelegation (f .sdkCtx , ubd ))
8585
@@ -138,7 +138,7 @@ func TestSlashRedelegation(t *testing.T) {
138138 // set a redelegation with an expiration timestamp beyond which the
139139 // redelegation shouldn't be slashed
140140 rd := types .NewRedelegation (addrDels [0 ], addrVals [0 ], addrVals [1 ], 0 ,
141- time .Unix (5 , 0 ), math .NewInt (10 ), math .LegacyNewDec (10 ), 0 , address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
141+ time .Unix (5 , 0 ), math .NewInt (10 ), math .LegacyNewDec (10 ), address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
142142
143143 assert .NilError (t , f .stakingKeeper .SetRedelegation (f .sdkCtx , rd ))
144144
@@ -285,7 +285,7 @@ func TestSlashWithUnbondingDelegation(t *testing.T) {
285285 // set an unbonding delegation with expiration timestamp beyond which the
286286 // unbonding delegation shouldn't be slashed
287287 ubdTokens := f .stakingKeeper .TokensFromConsensusPower (f .sdkCtx , 4 )
288- ubd := types .NewUnbondingDelegation (addrDels [0 ], addrVals [0 ], 11 , time .Unix (0 , 0 ), ubdTokens , 0 , address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
288+ ubd := types .NewUnbondingDelegation (addrDels [0 ], addrVals [0 ], 11 , time .Unix (0 , 0 ), ubdTokens , address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
289289 assert .NilError (t , f .stakingKeeper .SetUnbondingDelegation (f .sdkCtx , ubd ))
290290
291291 // slash validator for the first time
@@ -415,7 +415,7 @@ func TestSlashWithRedelegation(t *testing.T) {
415415
416416 // set a redelegation
417417 rdTokens := f .stakingKeeper .TokensFromConsensusPower (f .sdkCtx , 6 )
418- rd := types .NewRedelegation (addrDels [0 ], addrVals [0 ], addrVals [1 ], 11 , time .Unix (0 , 0 ), rdTokens , math .LegacyNewDecFromInt (rdTokens ), 0 , address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
418+ rd := types .NewRedelegation (addrDels [0 ], addrVals [0 ], addrVals [1 ], 11 , time .Unix (0 , 0 ), rdTokens , math .LegacyNewDecFromInt (rdTokens ), address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
419419 assert .NilError (t , f .stakingKeeper .SetRedelegation (f .sdkCtx , rd ))
420420
421421 // set the associated delegation
@@ -573,7 +573,7 @@ func TestSlashBoth(t *testing.T) {
573573 // set a redelegation with expiration timestamp beyond which the
574574 // redelegation shouldn't be slashed
575575 rdATokens := f .stakingKeeper .TokensFromConsensusPower (f .sdkCtx , 6 )
576- rdA := types .NewRedelegation (addrDels [0 ], addrVals [0 ], addrVals [1 ], 11 , time .Unix (0 , 0 ), rdATokens , math .LegacyNewDecFromInt (rdATokens ), 0 , address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
576+ rdA := types .NewRedelegation (addrDels [0 ], addrVals [0 ], addrVals [1 ], 11 , time .Unix (0 , 0 ), rdATokens , math .LegacyNewDecFromInt (rdATokens ), address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
577577 assert .NilError (t , f .stakingKeeper .SetRedelegation (f .sdkCtx , rdA ))
578578
579579 // set the associated delegation
@@ -584,7 +584,7 @@ func TestSlashBoth(t *testing.T) {
584584 // unbonding delegation shouldn't be slashed)
585585 ubdATokens := f .stakingKeeper .TokensFromConsensusPower (f .sdkCtx , 4 )
586586 ubdA := types .NewUnbondingDelegation (addrDels [0 ], addrVals [0 ], 11 ,
587- time .Unix (0 , 0 ), ubdATokens , 0 , address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
587+ time .Unix (0 , 0 ), ubdATokens , address .NewBech32Codec ("cosmosvaloper" ), address .NewBech32Codec ("cosmos" ))
588588 assert .NilError (t , f .stakingKeeper .SetUnbondingDelegation (f .sdkCtx , ubdA ))
589589
590590 bondedCoins := sdk .NewCoins (sdk .NewCoin (bondDenom , rdATokens .MulRaw (2 )))
0 commit comments