Skip to content

Commit

Permalink
update revert signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
saucepoint committed Aug 5, 2024
1 parent c75bcf5 commit 39b80b0
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ contract PositionManagerModifyLiquiditiesTest is Test, PosmTestSetup, LiquidityF
// should revert because hook is re-entering modifyLiquiditiesWithoutUnlock
vm.expectRevert(
abi.encodeWithSelector(
Hooks.FailedHookCall.selector, abi.encodeWithSelector(ReentrancyLock.ContractLocked.selector)
Hooks.Wrap__FailedHookCall.selector,
address(hookModifyLiquidities),
abi.encodeWithSelector(ReentrancyLock.ContractLocked.selector)
)
);
lpm.modifyLiquidities(calls, _deadline);
Expand All @@ -456,7 +458,9 @@ contract PositionManagerModifyLiquiditiesTest is Test, PosmTestSetup, LiquidityF
// should revert because hook is re-entering modifyLiquiditiesWithoutUnlock
vm.expectRevert(
abi.encodeWithSelector(
Hooks.FailedHookCall.selector, abi.encodeWithSelector(ReentrancyLock.ContractLocked.selector)
Hooks.Wrap__FailedHookCall.selector,
address(hookModifyLiquidities),
abi.encodeWithSelector(ReentrancyLock.ContractLocked.selector)
)
);
lpm.modifyLiquidities(calls, _deadline);
Expand All @@ -477,7 +481,9 @@ contract PositionManagerModifyLiquiditiesTest is Test, PosmTestSetup, LiquidityF
// should revert because hook is re-entering modifyLiquiditiesWithoutUnlock
vm.expectRevert(
abi.encodeWithSelector(
Hooks.FailedHookCall.selector, abi.encodeWithSelector(ReentrancyLock.ContractLocked.selector)
Hooks.Wrap__FailedHookCall.selector,
address(hookModifyLiquidities),
abi.encodeWithSelector(ReentrancyLock.ContractLocked.selector)
)
);
lpm.modifyLiquidities(calls, _deadline);
Expand Down

0 comments on commit 39b80b0

Please sign in to comment.