@@ -79,7 +79,7 @@ func TestSlashUnbondingDelegation(t *testing.T) {
79
79
// set an unbonding delegation with expiration timestamp (beyond which the
80
80
// unbonding delegation shouldn't be slashed)
81
81
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" ))
83
83
84
84
assert .NilError (t , f .stakingKeeper .SetUnbondingDelegation (f .sdkCtx , ubd ))
85
85
@@ -138,7 +138,7 @@ func TestSlashRedelegation(t *testing.T) {
138
138
// set a redelegation with an expiration timestamp beyond which the
139
139
// redelegation shouldn't be slashed
140
140
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" ))
142
142
143
143
assert .NilError (t , f .stakingKeeper .SetRedelegation (f .sdkCtx , rd ))
144
144
@@ -285,7 +285,7 @@ func TestSlashWithUnbondingDelegation(t *testing.T) {
285
285
// set an unbonding delegation with expiration timestamp beyond which the
286
286
// unbonding delegation shouldn't be slashed
287
287
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" ))
289
289
assert .NilError (t , f .stakingKeeper .SetUnbondingDelegation (f .sdkCtx , ubd ))
290
290
291
291
// slash validator for the first time
@@ -415,7 +415,7 @@ func TestSlashWithRedelegation(t *testing.T) {
415
415
416
416
// set a redelegation
417
417
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" ))
419
419
assert .NilError (t , f .stakingKeeper .SetRedelegation (f .sdkCtx , rd ))
420
420
421
421
// set the associated delegation
@@ -573,7 +573,7 @@ func TestSlashBoth(t *testing.T) {
573
573
// set a redelegation with expiration timestamp beyond which the
574
574
// redelegation shouldn't be slashed
575
575
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" ))
577
577
assert .NilError (t , f .stakingKeeper .SetRedelegation (f .sdkCtx , rdA ))
578
578
579
579
// set the associated delegation
@@ -584,7 +584,7 @@ func TestSlashBoth(t *testing.T) {
584
584
// unbonding delegation shouldn't be slashed)
585
585
ubdATokens := f .stakingKeeper .TokensFromConsensusPower (f .sdkCtx , 4 )
586
586
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" ))
588
588
assert .NilError (t , f .stakingKeeper .SetUnbondingDelegation (f .sdkCtx , ubdA ))
589
589
590
590
bondedCoins := sdk .NewCoins (sdk .NewCoin (bondDenom , rdATokens .MulRaw (2 )))
0 commit comments