Skip to content

Commit

Permalink
refactor: self delegate after undelegation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xClandestine committed Dec 20, 2024
1 parent 3605cb7 commit a77a2ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/integration/tests/Deposit_Delegate_Allocate.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ contract Integration_Deposit_Delegate_Allocate is IntegrationCheckUtils {
IDelegationManagerTypes.Withdrawal[] memory withdrawals = staker.undelegate();
bytes32[] memory withdrawalRoots = _getWithdrawalHashes(withdrawals);

staker.registerAsOperator();

// 6. Complete withdrawal
_rollBlocksForCompleteWithdrawals(withdrawals);
for (uint256 i = 0; i < withdrawals.length; ++i) {
Expand Down Expand Up @@ -198,6 +200,8 @@ contract Integration_Deposit_Delegate_Allocate is IntegrationCheckUtils {
IDelegationManagerTypes.Withdrawal[] memory withdrawals = staker.undelegate();
bytes32[] memory withdrawalRoots = _getWithdrawalHashes(withdrawals);

staker.registerAsOperator();

// 4. Complete withdrawal
// Fast forward to when we can complete the withdrawal
_rollBlocksForCompleteWithdrawals(withdrawals);
Expand Down

0 comments on commit a77a2ec

Please sign in to comment.