Skip to content

Commit

Permalink
Fix unstaking everything
Browse files Browse the repository at this point in the history
  • Loading branch information
DrZoltanFazekas committed Nov 25, 2024
1 parent 4c5c9d1 commit 12a2c60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/unstake_Delegation.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ contract Unstake is Script {
);

if (amount == 0) {
vm.prank(msg.sender);
amount = INonLiquidDelegation(address(delegation)).getDelegatedStake();
}
} else
Expand Down

0 comments on commit 12a2c60

Please sign in to comment.