Skip to content

Commit dcca454

Browse files
committed
fix: update eigenpodmanager tests
1 parent 59a3ec5 commit dcca454

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/unit/EigenPodManagerUnit.t.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ contract EigenPodManagerUnitTests is EigenLayerUnitTestSetup, IEigenPodManagerEv
7878

7979
if (shares >= 0) {
8080
cheats.prank(address(delegationManagerMock));
81-
eigenPodManager.addShares(podOwner, beaconChainETHStrategy, IERC20(address(0)), uint256(shares));
81+
eigenPodManager.addShares(podOwner, beaconChainETHStrategy, uint256(shares));
8282
} else {
8383
EigenPodManagerWrapper(address(eigenPodManager)).setPodOwnerShares(podOwner, shares);
8484
}
@@ -193,20 +193,20 @@ contract EigenPodManagerUnitTests_ShareUpdateTests is EigenPodManagerUnitTests {
193193
cheats.assume(notDelegationManager != address(delegationManagerMock));
194194
cheats.prank(notDelegationManager);
195195
cheats.expectRevert(IEigenPodManagerErrors.OnlyDelegationManager.selector);
196-
eigenPodManager.addShares(defaultStaker, IStrategy(address(0)), IERC20(address(0)), 0);
196+
eigenPodManager.addShares(defaultStaker, IStrategy(address(0)), 0);
197197
}
198198

199199
function test_addShares_revert_podOwnerZeroAddress() public {
200200
cheats.prank(address(delegationManagerMock));
201201
cheats.expectRevert(IEigenPodErrors.InputAddressZero.selector);
202-
eigenPodManager.addShares(address(0), beaconChainETHStrategy, IERC20(address(0)), 0);
202+
eigenPodManager.addShares(address(0), beaconChainETHStrategy, 0);
203203
}
204204

205205
function testFuzz_addShares_revert_sharesNegative(int256 shares) public {
206206
cheats.assume(shares < 0);
207207
cheats.prank(address(delegationManagerMock));
208208
cheats.expectRevert(IEigenPodManagerErrors.SharesNegative.selector);
209-
eigenPodManager.addShares(defaultStaker, beaconChainETHStrategy, IERC20(address(0)), uint256(shares));
209+
eigenPodManager.addShares(defaultStaker, beaconChainETHStrategy, uint256(shares));
210210
}
211211

212212
function testFuzz_addShares(uint256 shares) public {
@@ -217,7 +217,7 @@ contract EigenPodManagerUnitTests_ShareUpdateTests is EigenPodManagerUnitTests {
217217

218218
// Add shares
219219
cheats.prank(address(delegationManagerMock));
220-
eigenPodManager.addShares(defaultStaker, beaconChainETHStrategy, IERC20(address(0)), shares);
220+
eigenPodManager.addShares(defaultStaker, beaconChainETHStrategy, shares);
221221

222222
// Check storage update
223223
assertEq(eigenPodManager.podOwnerDepositShares(defaultStaker), int256(shares), "Incorrect number of shares added");

0 commit comments

Comments
 (0)