Skip to content

Commit

Permalink
fix: deduplicate snapshot namings
Browse files Browse the repository at this point in the history
  • Loading branch information
marktoda committed Jun 12, 2023
1 parent fef3ce3 commit c9931ed
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .forge-snapshots/simple swap.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
67335
1 change: 1 addition & 0 deletions .forge-snapshots/swap with hooks.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
67310
1 change: 1 addition & 0 deletions .forge-snapshots/swap with native.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
67335
2 changes: 1 addition & 1 deletion .forge-snapshots/swap.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
67335
67310
6 changes: 3 additions & 3 deletions test/foundry-tests/PoolManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ contract PoolManagerTest is Test, Deployers, TokenFixture, GasSnapshot, IERC1155
params = IPoolManager.SwapParams({zeroForOne: true, amountSpecified: 100, sqrtPriceLimitX96: SQRT_RATIO_1_4});
testSettings = PoolSwapTest.TestSettings({withdrawTokens: false, settleUsingTransfer: false});

snapStart("swap");
snapStart("simple swap");
swapTest.swap(key, params, testSettings);
snapEnd();
}
Expand All @@ -831,7 +831,7 @@ contract PoolManagerTest is Test, Deployers, TokenFixture, GasSnapshot, IERC1155
params = IPoolManager.SwapParams({zeroForOne: true, amountSpecified: 100, sqrtPriceLimitX96: SQRT_RATIO_1_4});
testSettings = PoolSwapTest.TestSettings({withdrawTokens: false, settleUsingTransfer: false});

snapStart("swap");
snapStart("swap with native");
swapTest.swap(key, params, testSettings);
snapEnd();
}
Expand Down Expand Up @@ -863,7 +863,7 @@ contract PoolManagerTest is Test, Deployers, TokenFixture, GasSnapshot, IERC1155
params = IPoolManager.SwapParams({zeroForOne: true, amountSpecified: 100, sqrtPriceLimitX96: SQRT_RATIO_1_4});
testSettings = PoolSwapTest.TestSettings({withdrawTokens: true, settleUsingTransfer: true});

snapStart("swap");
snapStart("swap with hooks");
swapTest.swap(key, params, testSettings);
snapEnd();
}
Expand Down

0 comments on commit c9931ed

Please sign in to comment.