From 39b80b04be569b205421fe0c787f62f05f4a2eb2 Mon Sep 17 00:00:00 2001 From: saucepoint Date: Mon, 5 Aug 2024 15:23:35 -0400 Subject: [PATCH] update revert signatures --- ...itionManager.modifyLiquiditiesWithoutUnlock.t.sol | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/position-managers/PositionManager.modifyLiquiditiesWithoutUnlock.t.sol b/test/position-managers/PositionManager.modifyLiquiditiesWithoutUnlock.t.sol index c70b1a98..edfc1860 100644 --- a/test/position-managers/PositionManager.modifyLiquiditiesWithoutUnlock.t.sol +++ b/test/position-managers/PositionManager.modifyLiquiditiesWithoutUnlock.t.sol @@ -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); @@ -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); @@ -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);