Skip to content

Commit 1ed91ad

Browse files
committed
Fix broken tests
1 parent 1b4bee8 commit 1ed91ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/minipool/minipool-withdrawal-tests.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export default function() {
204204
// Wait 14 days
205205
await increaseTime(web3, 60 * 60 * 24 * 14 + 1)
206206
// Process withdraw and check slash
207-
await withdrawAndCheck('15', random, false, '15', '0');
207+
await withdrawAndCheck(minipool, '15', random, false, '15', '0');
208208
await slashAndCheck(random, web3.utils.toBN(web3.utils.toWei('1')))
209209
});
210210

@@ -213,12 +213,12 @@ export default function() {
213213
// Mark minipool withdrawable
214214
await submitMinipoolWithdrawable(minipool.address, {from: trustedNode});
215215
// Process withdraw
216-
await withdrawAndCheck('28', trustedNode, true, '16', '12');
216+
await withdrawAndCheck(minipool, '28', nodeWithdrawalAddress, true, '16', '12');
217217
// Wait 14 days and mine enough blocks to pass cooldown
218218
await increaseTime(web3, 60 * 60 * 24 * 14 + 1)
219219
await mineBlocks(web3, 101)
220220
// Process withdraw and attempt to slash
221-
await withdrawAndCheck('4', random, false, '4', '0');
221+
await withdrawAndCheck(minipool, '4', random, false, '4', '0');
222222
await shouldRevert(minipool.slash(), 'Was able to slash minipool', 'No balance to slash')
223223
});
224224

0 commit comments

Comments
 (0)