diff --git a/script/ghost/DeployGhostMintHelper.s.sol b/script/ghost/DeployGhostMintHelper.s.sol index 03c6ceb..6257290 100644 --- a/script/ghost/DeployGhostMintHelper.s.sol +++ b/script/ghost/DeployGhostMintHelper.s.sol @@ -13,7 +13,9 @@ forge verify-contract -f $RPC_URL --etherscan-api-key $ETHERSCAN_API_KEY CONTRAC contract DeployGhostMintHelperScript is Script { function run() public { vm.startBroadcast(); - GhostMintHelper helper = new GhostMintHelper{salt: bytes32(0)}(0xE2A7f267124AC3E4131f27b9159c78C521A44F3c); + GhostMintHelper helper = new GhostMintHelper{salt: bytes32(0)}( + 0xE2A7f267124AC3E4131f27b9159c78C521A44F3c, 0x249f82caa683a49Fe92F5E9518BbDBE443dfF1A2 + ); vm.stopBroadcast(); console2.log("Ghost mint helper deployed at", address(helper)); } diff --git a/script/ghost/DeployGhostRedeemHelper.s.sol b/script/ghost/DeployGhostRedeemHelper.s.sol index ac280b0..b587bec 100644 --- a/script/ghost/DeployGhostRedeemHelper.s.sol +++ b/script/ghost/DeployGhostRedeemHelper.s.sol @@ -13,7 +13,9 @@ forge verify-contract -f $RPC_URL --etherscan-api-key $ETHERSCAN_API_KEY CONTRAC contract DeployGhostRedeemHelperScript is Script { function run() public { vm.startBroadcast(); - GhostRedeemHelper helper = new GhostRedeemHelper{salt: bytes32(0)}(0xE2A7f267124AC3E4131f27b9159c78C521A44F3c); + GhostRedeemHelper helper = new GhostRedeemHelper{salt: bytes32(0)}( + 0xE2A7f267124AC3E4131f27b9159c78C521A44F3c, 0x249f82caa683a49Fe92F5E9518BbDBE443dfF1A2 + ); vm.stopBroadcast(); console2.log("Ghost redeem helper deployed at", address(helper)); } diff --git a/src/ghost/GhostMintHelper.sol b/src/ghost/GhostMintHelper.sol index 9b935d7..7b7e144 100644 --- a/src/ghost/GhostMintHelper.sol +++ b/src/ghost/GhostMintHelper.sol @@ -14,7 +14,7 @@ contract GhostMintHelper is Ownable { ILowLevelVault public immutable GHOST_VAULT; - constructor(address _ltvVault) Ownable(msg.sender) { + constructor(address _ltvVault, address _initialOwner) Ownable(_initialOwner) { GHOST_VAULT = ILowLevelVault(_ltvVault); } diff --git a/src/ghost/GhostRedeemHelper.sol b/src/ghost/GhostRedeemHelper.sol index dcbd05e..944b0f8 100644 --- a/src/ghost/GhostRedeemHelper.sol +++ b/src/ghost/GhostRedeemHelper.sol @@ -14,7 +14,7 @@ contract GhostRedeemHelper is Ownable { ILowLevelVault public immutable GHOST_VAULT; - constructor(address _ltvVault) Ownable(msg.sender) { + constructor(address _ltvVault, address _initialOwner) Ownable(_initialOwner) { GHOST_VAULT = ILowLevelVault(_ltvVault); }