Skip to content

Commit

Permalink
fix: test router was borked
Browse files Browse the repository at this point in the history
  • Loading branch information
marktoda committed Nov 17, 2023
1 parent 4fe142c commit 200c010
Show file tree
Hide file tree
Showing 6 changed files with 248 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/FullRangeFirstSwap.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
133445
133339
2 changes: 1 addition & 1 deletion .forge-snapshots/FullRangeSecondSwap.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
93791
93685
2 changes: 1 addition & 1 deletion .forge-snapshots/FullRangeSwap.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
131720
131614
2 changes: 1 addition & 1 deletion test/LimitOrder.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ contract TestLimitOrder is Test, Deployers {
function testNotZeroForOneInRangeRevert() public {
// swapping is free, there's no liquidity in the pool, so we only need to specify 1 wei
router.swap(
key, IPoolManager.SwapParams(true, 1, SQRT_RATIO_1_1 - 1), HookEnabledSwapRouter.TestSettings(true, true), ZERO_BYTES
key, IPoolManager.SwapParams(true, 1 ether, SQRT_RATIO_1_1 - 1), HookEnabledSwapRouter.TestSettings(true, true), ZERO_BYTES
);
vm.expectRevert(LimitOrder.InRange.selector);
limitOrder.place(key, -60, false, 1000000);
Expand Down
Loading

0 comments on commit 200c010

Please sign in to comment.