Skip to content

Commit e30f681

Browse files
committed
account for poolManager constructor param
1 parent ccfee96 commit e30f681

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

script/DeployProtocol.s.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pragma solidity ^0.8.0;
44
import {ScriptUtil} from "./ScriptUtil.s.sol";
55
import {EulerSwapFactory} from "../src/EulerSwapFactory.sol";
66
import {EulerSwapPeriphery} from "../src/EulerSwapPeriphery.sol";
7+
import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol";
78

89
/// @title Script to deploy EulerSwapFactory & EulerSwapPeriphery.
910
contract DeployProtocol is ScriptUtil {
@@ -17,10 +18,11 @@ contract DeployProtocol is ScriptUtil {
1718
string memory json = _getJsonFile(inputScriptFileName);
1819

1920
address evc = vm.parseJsonAddress(json, ".evc");
21+
address poolManager = vm.parseJsonAddress(json, ".poolManager");
2022

2123
vm.startBroadcast(deployerAddress);
2224

23-
new EulerSwapFactory(evc);
25+
new EulerSwapFactory(IPoolManager(poolManager), evc);
2426
new EulerSwapPeriphery();
2527

2628
vm.stopBroadcast();

script/json/DeployProtocol_input.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"evc": "0x0C9a3dd6b8F28529d72d7f9cE918D493519EE383"
2+
"evc": "0x0C9a3dd6b8F28529d72d7f9cE918D493519EE383",
3+
"poolManager": "0x000000000004444c5dc75cB358380D2e3dE08A90"
34
}

0 commit comments

Comments
 (0)