@@ -34,6 +34,7 @@ import {IStrategy} from "lib/eigenlayer-contracts/src/contracts/interfaces/IStra
34
34
import {StakingNodeTestBase, IEigenPodSimplified} from "./StakingNodeTestBase.sol " ;
35
35
import {IRewardsCoordinator} from "lib/eigenlayer-contracts/src/contracts/interfaces/IRewardsCoordinator.sol " ;
36
36
import {SlashingLib} from "lib/eigenlayer-contracts/src/contracts/libraries/SlashingLib.sol " ;
37
+ import {console} from "forge-std/console.sol " ;
37
38
38
39
contract StakingNodeEigenPod is StakingNodeTestBase {
39
40
@@ -249,11 +250,11 @@ contract StakingNodeDelegation is StakingNodeTestBase {
249
250
250
251
vm.expectRevert ();
251
252
vm.prank (actors.ops.STAKING_NODES_WITHDRAWER);
252
- stakingNodeInstance.completeQueuedWithdrawals (new IDelegationManager.Withdrawal [](1 ), new uint256 []( 1 ) );
253
+ stakingNodeInstance.completeQueuedWithdrawals (new IDelegationManager.Withdrawal [](1 ));
253
254
254
255
vm.expectRevert ();
255
256
vm.prank (actors.admin.STAKING_NODES_DELEGATOR);
256
- stakingNodeInstance.completeQueuedWithdrawalsAsShares (new IDelegationManager.Withdrawal [](1 ), new uint256 []( 1 ) );
257
+ stakingNodeInstance.completeQueuedWithdrawalsAsShares (new IDelegationManager.Withdrawal [](1 ));
257
258
}
258
259
259
260
function testDelegateUndelegateAndDelegateAgain () public {
@@ -427,11 +428,8 @@ contract StakingNodeDelegation is StakingNodeTestBase {
427
428
428
429
// complete queued withdrawals
429
430
{
430
- uint256 [] memory middlewareTimesIndexes = new uint256 [](calculatedWithdrawals.length );
431
- // all is zeroed out by default
432
- middlewareTimesIndexes[0 ] = 0 ;
433
431
vm.prank (actors.admin.STAKING_NODES_DELEGATOR);
434
- stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals, middlewareTimesIndexes );
432
+ stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals);
435
433
}
436
434
437
435
finalQueuedShares = stakingNodeInstance.getQueuedSharesAmount ();
@@ -528,11 +526,8 @@ contract StakingNodeDelegation is StakingNodeTestBase {
528
526
529
527
// complete queued withdrawals
530
528
{
531
- uint256 [] memory middlewareTimesIndexes = new uint256 [](calculatedWithdrawals.length );
532
- // all is zeroed out by default
533
- middlewareTimesIndexes[0 ] = 0 ;
534
529
vm.prank (actors.admin.STAKING_NODES_DELEGATOR);
535
- stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals, middlewareTimesIndexes );
530
+ stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals);
536
531
}
537
532
538
533
finalQueuedShares = stakingNodeInstance.getQueuedSharesAmount ();
@@ -660,11 +655,8 @@ contract StakingNodeDelegation is StakingNodeTestBase {
660
655
661
656
// complete queued withdrawals
662
657
{
663
- uint256 [] memory middlewareTimesIndexes = new uint256 [](calculatedWithdrawals.length );
664
- // all is zeroed out by default
665
- middlewareTimesIndexes[0 ] = 0 ;
666
658
vm.prank (actors.admin.STAKING_NODES_DELEGATOR);
667
- stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals, middlewareTimesIndexes );
659
+ stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals);
668
660
}
669
661
670
662
uint256 finalQueuedShares = stakingNodeInstance.getQueuedSharesAmount ();
0 commit comments