Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marktoda committed Nov 16, 2023
1 parent d526f75 commit 3e3ab5d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .forge-snapshots/TWAMMSubmitOrder.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
123576
123619
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ solc_version = '0.8.20'
optimizer_runs = 800
ffi = true
fs_permissions = [{ access = "read-write", path = ".forge-snapshots/"}]
cancun = true

[profile.ci]
fuzz_runs = 100000
Expand Down
3 changes: 3 additions & 0 deletions test/FullRange.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ contract TestFullRange is Test, Deployers, GasSnapshot {
PoolId idWithLiq;

function setUp() public {
deployFreshManagerAndRouters();
(currency0, currency1) = deployMintAndApprove2Currencies();

token0 = new MockERC20("TestA", "A", 18);
token1 = new MockERC20("TestB", "B", 18);
token2 = new MockERC20("TestC", "C", 18);
Expand Down
3 changes: 3 additions & 0 deletions test/GeomeanOracle.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ contract TestGeomeanOracle is Test, Deployers {
PoolId id;

function setUp() public {
deployFreshManagerAndRouters();
(currency0, currency1) = deployMintAndApprove2Currencies();

token0 = TestERC20(Currency.unwrap(currency0));
token1 = TestERC20(Currency.unwrap(currency1));

Expand Down
3 changes: 3 additions & 0 deletions test/LimitOrder.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ contract TestLimitOrder is Test, Deployers {
PoolId id;

function setUp() public {
deployFreshManagerAndRouters();
(currency0, currency1) = deployMintAndApprove2Currencies();

token0 = TestERC20(Currency.unwrap(currency0));
token1 = TestERC20(Currency.unwrap(currency1));

Expand Down
3 changes: 3 additions & 0 deletions test/TWAMM.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ contract TWAMMTest is Test, Deployers, GasSnapshot {
PoolId poolId;

function setUp() public {
deployFreshManagerAndRouters();
(currency0, currency1) = deployMintAndApprove2Currencies();

token0 = MockERC20(Currency.unwrap(currency0));
token1 = MockERC20(Currency.unwrap(currency1));

Expand Down

0 comments on commit 3e3ab5d

Please sign in to comment.