@@ -8670,16 +8670,16 @@ contract DelegationManagerUnitTests_getQueuedWithdrawals is DelegationManagerUni
86708670
86718671 // Get shares from withdrawal - should return 50 shares (100 * 0.5) using original magnitude
86728672 // rather than incorrectly returning 100 shares (100 * 1.0) using new magnitude
8673- uint256 [] memory shares = delegationManager.getSharesFromQueuedWithdrawal (withdrawalRoot);
8673+ (, uint256 [] memory shares ) = delegationManager.getQueuedWithdrawalFromRoot (withdrawalRoot);
86748674 assertEq (shares[0 ], 50e18 , "shares should be 50e18 (100e18 * 0.5) using original magnitude " );
86758675 }
86768676}
86778677
8678- contract DelegationManagerUnitTests_getSharesFromQueuedWithdrawal is DelegationManagerUnitTests {
8678+ contract DelegationManagerUnitTests_getQueuedWithdrawalFromRoot is DelegationManagerUnitTests {
86798679 using ArrayLib for * ;
86808680 using SlashingLib for * ;
86818681
8682- function test_getSharesFromQueuedWithdrawal_Correctness (Randomness r ) public rand (r) {
8682+ function test_getQueuedWithdrawalFromRoot_Correctness (Randomness r ) public rand (r) {
86838683 // Set up initial deposit
86848684 uint256 depositAmount = r.Uint256 (1 ether, 100 ether);
86858685 _depositIntoStrategies (defaultStaker, strategyMock.toArray (), depositAmount.toArrayU256 ());
@@ -8703,14 +8703,14 @@ contract DelegationManagerUnitTests_getSharesFromQueuedWithdrawal is DelegationM
87038703 delegationManager.queueWithdrawals (queuedWithdrawalParams);
87048704
87058705 // Get shares from queued withdrawal
8706- uint256 [] memory shares = delegationManager.getSharesFromQueuedWithdrawal (withdrawalRoot);
8706+ (, uint256 [] memory shares ) = delegationManager.getQueuedWithdrawalFromRoot (withdrawalRoot);
87078707
87088708 // Verify withdrawal details match
87098709 assertEq (shares.length , 1 , "incorrect shares array length " );
87108710 assertEq (shares[0 ], depositAmount, "incorrect shares amount " );
87118711 }
87128712
8713- function test_getSharesFromQueuedWithdrawal_AfterSlashing (Randomness r ) public rand (r) {
8713+ function test_getQueuedWithdrawalFromRoot_AfterSlashing (Randomness r ) public rand (r) {
87148714 // Set up initial deposit
87158715 uint256 depositAmount = r.Uint256 (1 ether, 100 ether);
87168716 _depositIntoStrategies (defaultStaker, strategyMock.toArray (), depositAmount.toArrayU256 ());
@@ -8739,20 +8739,20 @@ contract DelegationManagerUnitTests_getSharesFromQueuedWithdrawal is DelegationM
87398739 delegationManager.slashOperatorShares (defaultOperator, strategyMock, WAD, 0.5 ether);
87408740
87418741 // Get shares from queued withdrawal
8742- uint256 [] memory shares = delegationManager.getSharesFromQueuedWithdrawal (withdrawalRoot);
8742+ (, uint256 [] memory shares ) = delegationManager.getQueuedWithdrawalFromRoot (withdrawalRoot);
87438743
87448744 // Verify withdrawal details match and shares are slashed
87458745 assertEq (shares.length , 1 , "incorrect shares array length " );
87468746 assertEq (shares[0 ], depositAmount / 2 , "shares not properly slashed " );
87478747 }
87488748
8749- function test_getSharesFromQueuedWithdrawal_NonexistentWithdrawal () public {
8749+ function test_getQueuedWithdrawalFromRoot_NonexistentWithdrawal () public {
87508750 bytes32 nonexistentRoot = bytes32 (uint256 (1 ));
8751- uint256 [] memory shares = delegationManager.getSharesFromQueuedWithdrawal (nonexistentRoot);
8751+ (, uint256 [] memory shares ) = delegationManager.getQueuedWithdrawalFromRoot (nonexistentRoot);
87528752 assertEq (shares.length , 0 , "shares array should be empty " );
87538753 }
87548754
8755- function test_getSharesFromQueuedWithdrawal_MultipleStrategies (Randomness r ) public rand (r) {
8755+ function test_getQueuedWithdrawalFromRoot_MultipleStrategies (Randomness r ) public rand (r) {
87568756 // Set up multiple strategies with deposits
87578757 uint256 numStrategies = r.Uint256 (2 , 5 );
87588758 uint256 [] memory depositShares = r.Uint256Array ({
@@ -8782,7 +8782,7 @@ contract DelegationManagerUnitTests_getSharesFromQueuedWithdrawal is DelegationM
87828782 delegationManager.queueWithdrawals (queuedWithdrawalParams);
87838783
87848784 // Get shares from queued withdrawal
8785- uint256 [] memory shares = delegationManager.getSharesFromQueuedWithdrawal (withdrawalRoot);
8785+ (, uint256 [] memory shares ) = delegationManager.getQueuedWithdrawalFromRoot (withdrawalRoot);
87868786
87878787 // Verify withdrawal details and shares for each strategy
87888788 assertEq (shares.length , numStrategies, "incorrect shares array length " );
@@ -8791,8 +8791,8 @@ contract DelegationManagerUnitTests_getSharesFromQueuedWithdrawal is DelegationM
87918791 }
87928792 }
87938793
8794- function testFuzz_getSharesFromQueuedWithdrawal_EmptyWithdrawal (bytes32 withdrawalRoot ) public {
8795- uint256 [] memory shares = delegationManager.getSharesFromQueuedWithdrawal (withdrawalRoot);
8794+ function testFuzz_getQueuedWithdrawalFromRoot_EmptyWithdrawal (bytes32 withdrawalRoot ) public {
8795+ (, uint256 [] memory shares ) = delegationManager.getQueuedWithdrawalFromRoot (withdrawalRoot);
87968796 assertEq (shares.length , 0 , "sanity check " );
87978797 }
87988798}
0 commit comments