@@ -204,7 +204,7 @@ export default function() {
204
204
// Wait 14 days
205
205
await increaseTime ( web3 , 60 * 60 * 24 * 14 + 1 )
206
206
// Process withdraw and check slash
207
- await withdrawAndCheck ( '15' , random , false , '15' , '0' ) ;
207
+ await withdrawAndCheck ( minipool , '15' , random , false , '15' , '0' ) ;
208
208
await slashAndCheck ( random , web3 . utils . toBN ( web3 . utils . toWei ( '1' ) ) )
209
209
} ) ;
210
210
@@ -213,12 +213,12 @@ export default function() {
213
213
// Mark minipool withdrawable
214
214
await submitMinipoolWithdrawable ( minipool . address , { from : trustedNode } ) ;
215
215
// Process withdraw
216
- await withdrawAndCheck ( '28' , trustedNode , true , '16' , '12' ) ;
216
+ await withdrawAndCheck ( minipool , '28' , nodeWithdrawalAddress , true , '16' , '12' ) ;
217
217
// Wait 14 days and mine enough blocks to pass cooldown
218
218
await increaseTime ( web3 , 60 * 60 * 24 * 14 + 1 )
219
219
await mineBlocks ( web3 , 101 )
220
220
// Process withdraw and attempt to slash
221
- await withdrawAndCheck ( '4' , random , false , '4' , '0' ) ;
221
+ await withdrawAndCheck ( minipool , '4' , random , false , '4' , '0' ) ;
222
222
await shouldRevert ( minipool . slash ( ) , 'Was able to slash minipool' , 'No balance to slash' )
223
223
} ) ;
224
224
0 commit comments