@@ -34,6 +34,7 @@ import {IStrategy} from "lib/eigenlayer-contracts/src/contracts/interfaces/IStra
3434import {StakingNodeTestBase, IEigenPodSimplified} from "./StakingNodeTestBase.sol " ;
3535import {IRewardsCoordinator} from "lib/eigenlayer-contracts/src/contracts/interfaces/IRewardsCoordinator.sol " ;
3636import {SlashingLib} from "lib/eigenlayer-contracts/src/contracts/libraries/SlashingLib.sol " ;
37+ import {console} from "forge-std/console.sol " ;
3738
3839contract StakingNodeEigenPod is StakingNodeTestBase {
3940
@@ -249,11 +250,11 @@ contract StakingNodeDelegation is StakingNodeTestBase {
249250
250251 vm.expectRevert ();
251252 vm.prank (actors.ops.STAKING_NODES_WITHDRAWER);
252- stakingNodeInstance.completeQueuedWithdrawals (new IDelegationManager.Withdrawal [](1 ), new uint256 []( 1 ) );
253+ stakingNodeInstance.completeQueuedWithdrawals (new IDelegationManager.Withdrawal [](1 ));
253254
254255 vm.expectRevert ();
255256 vm.prank (actors.admin.STAKING_NODES_DELEGATOR);
256- stakingNodeInstance.completeQueuedWithdrawalsAsShares (new IDelegationManager.Withdrawal [](1 ), new uint256 []( 1 ) );
257+ stakingNodeInstance.completeQueuedWithdrawalsAsShares (new IDelegationManager.Withdrawal [](1 ));
257258 }
258259
259260 function testDelegateUndelegateAndDelegateAgain () public {
@@ -427,11 +428,8 @@ contract StakingNodeDelegation is StakingNodeTestBase {
427428
428429 // complete queued withdrawals
429430 {
430- uint256 [] memory middlewareTimesIndexes = new uint256 [](calculatedWithdrawals.length );
431- // all is zeroed out by default
432- middlewareTimesIndexes[0 ] = 0 ;
433431 vm.prank (actors.admin.STAKING_NODES_DELEGATOR);
434- stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals, middlewareTimesIndexes );
432+ stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals);
435433 }
436434
437435 finalQueuedShares = stakingNodeInstance.getQueuedSharesAmount ();
@@ -528,11 +526,8 @@ contract StakingNodeDelegation is StakingNodeTestBase {
528526
529527 // complete queued withdrawals
530528 {
531- uint256 [] memory middlewareTimesIndexes = new uint256 [](calculatedWithdrawals.length );
532- // all is zeroed out by default
533- middlewareTimesIndexes[0 ] = 0 ;
534529 vm.prank (actors.admin.STAKING_NODES_DELEGATOR);
535- stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals, middlewareTimesIndexes );
530+ stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals);
536531 }
537532
538533 finalQueuedShares = stakingNodeInstance.getQueuedSharesAmount ();
@@ -660,11 +655,8 @@ contract StakingNodeDelegation is StakingNodeTestBase {
660655
661656 // complete queued withdrawals
662657 {
663- uint256 [] memory middlewareTimesIndexes = new uint256 [](calculatedWithdrawals.length );
664- // all is zeroed out by default
665- middlewareTimesIndexes[0 ] = 0 ;
666658 vm.prank (actors.admin.STAKING_NODES_DELEGATOR);
667- stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals, middlewareTimesIndexes );
659+ stakingNodeInstance.completeQueuedWithdrawalsAsShares (calculatedWithdrawals);
668660 }
669661
670662 uint256 finalQueuedShares = stakingNodeInstance.getQueuedSharesAmount ();
0 commit comments