diff --git a/contracts/test/MiladyPoolOrderManager.t.sol b/contracts/test/MiladyPoolOrderManager.t.sol index a507826..f28825a 100644 --- a/contracts/test/MiladyPoolOrderManager.t.sol +++ b/contracts/test/MiladyPoolOrderManager.t.sol @@ -65,20 +65,10 @@ contract MiladyPoolOrderManagerTest is MiladyPoolDeployer, Deployers { POOL_MANAGER = manager; - _setUpMiladyPool(); - // Mock Tokens Setup (token0, token1) = deployMintAndApprove2Currencies(); - IERC20Minimal(Currency.unwrap(key.currency0)).approve( - address(hooksUseable), - 1000 ether - ); - - IERC20Minimal(Currency.unwrap(key.currency1)).approve( - address(hooksUseable), - 1000 ether - ); + _setUpMiladyPool(); (key, ) = initPool( token0, @@ -89,6 +79,16 @@ contract MiladyPoolOrderManagerTest is MiladyPoolDeployer, Deployers { ZERO_BYTES ); + IERC20Minimal(Currency.unwrap(key.currency0)).approve( + address(hooksUseable), + 1000 ether + ); + + IERC20Minimal(Currency.unwrap(key.currency1)).approve( + address(hooksUseable), + 1000 ether + ); + modifyLiquidityRouter.modifyLiquidity( key, IPoolManager.ModifyLiquidityParams({