mirror of
https://github.com/lux-amm/v4-periphery.git
synced 2026-10-30 20:54:39 +00:00
27 lines
976 B
Solidity
27 lines
976 B
Solidity
// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity ^0.8.20;
|
|
|
|
import {DeployPoolModifyLiquidityTest} from "../../script/02_PoolModifyLiquidityTest.s.sol";
|
|
import {IPoolManager} from "@luxamm/v4-core/src/interfaces/IPoolManager.sol";
|
|
import {PoolManager} from "@luxamm/v4-core/src/PoolManager.sol";
|
|
import {Test} from "forge-std/Test.sol";
|
|
import {PoolModifyLiquidityTest} from "@luxamm/v4-core/src/test/PoolModifyLiquidityTest.sol";
|
|
|
|
// Test of a Test contract (lol)
|
|
contract DeployPoolModifyLiquidityTestTest is Test {
|
|
DeployPoolModifyLiquidityTest deployer;
|
|
|
|
IPoolManager manager;
|
|
|
|
function setUp() public {
|
|
manager = new PoolManager(address(this));
|
|
deployer = new DeployPoolModifyLiquidityTest();
|
|
}
|
|
|
|
function test_run_modifyLiquidityRouter() public {
|
|
PoolModifyLiquidityTest testModifyLiquidityRouter = deployer.run(address(manager));
|
|
|
|
assertEq(address(testModifyLiquidityRouter.manager()), address(manager));
|
|
}
|
|
}
|