From 6a7dc18fdde3cbdac368bb1e0002f55b308e2af0 Mon Sep 17 00:00:00 2001 From: saucepoint Date: Mon, 11 Dec 2023 10:57:42 -0500 Subject: [PATCH] fix tests --- forge-test/NoOpSwap.t.sol | 4 ---- src/pages/hooks/no-op/NoOpSwap.sol | 1 - 2 files changed, 5 deletions(-) diff --git a/forge-test/NoOpSwap.t.sol b/forge-test/NoOpSwap.t.sol index 51ab3c6a..3751d269 100644 --- a/forge-test/NoOpSwap.t.sol +++ b/forge-test/NoOpSwap.t.sol @@ -51,7 +51,6 @@ contract NoOpSwapTest is HookTest { function test_noOp() public { assertEq(hook.beforeSwapCount(poolId), 0); - assertEq(hook.afterSwapCount(poolId), 0); // Perform a test swap // int256 amount = 69e18; @@ -64,12 +63,10 @@ contract NoOpSwapTest is HookTest { // Swapping with 69e18 will skip the swap logic! assertEq(hook.beforeSwapCount(poolId), 0); - assertEq(hook.afterSwapCount(poolId), 0); } function test_swap() public { assertEq(hook.beforeSwapCount(poolId), 0); - assertEq(hook.afterSwapCount(poolId), 0); // Perform a test swap // int256 amount = 1e18; @@ -80,6 +77,5 @@ contract NoOpSwapTest is HookTest { assertEq(int256(swapDelta.amount0()), amount); assertEq(hook.beforeSwapCount(poolId), 1); - assertEq(hook.afterSwapCount(poolId), 1); } } diff --git a/src/pages/hooks/no-op/NoOpSwap.sol b/src/pages/hooks/no-op/NoOpSwap.sol index ecba41b0..811b810a 100644 --- a/src/pages/hooks/no-op/NoOpSwap.sol +++ b/src/pages/hooks/no-op/NoOpSwap.sol @@ -12,7 +12,6 @@ contract NoOpSwap is BaseHook { using PoolIdLibrary for PoolKey; mapping(PoolId => uint256 count) public beforeSwapCount; - mapping(PoolId => uint256 count) public afterSwapCount; constructor(IPoolManager _poolManager) BaseHook(_poolManager) {}