From ab4016ecc2a0a1688653e60b70e000888528a51c Mon Sep 17 00:00:00 2001 From: Andrey Sobol Date: Sun, 9 Nov 2025 21:21:53 -0300 Subject: [PATCH 1/2] Fix owner in ghost --- script/ghost/DeployGhostMintHelper.s.sol | 2 +- script/ghost/DeployGhostRedeemHelper.s.sol | 2 +- src/ghost/GhostMintHelper.sol | 2 +- src/ghost/GhostRedeemHelper.sol | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/script/ghost/DeployGhostMintHelper.s.sol b/script/ghost/DeployGhostMintHelper.s.sol index 03c6ceb..36e3484 100644 --- a/script/ghost/DeployGhostMintHelper.s.sol +++ b/script/ghost/DeployGhostMintHelper.s.sol @@ -13,7 +13,7 @@ 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..580a5d3 100644 --- a/script/ghost/DeployGhostRedeemHelper.s.sol +++ b/script/ghost/DeployGhostRedeemHelper.s.sol @@ -13,7 +13,7 @@ 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); } From 04c6dee2735d83a90ab12b93d60beb27dfe60542 Mon Sep 17 00:00:00 2001 From: Andrey Sobol Date: Sun, 9 Nov 2025 21:23:05 -0300 Subject: [PATCH 2/2] fix fmt --- script/ghost/DeployGhostMintHelper.s.sol | 4 +++- script/ghost/DeployGhostRedeemHelper.s.sol | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/script/ghost/DeployGhostMintHelper.s.sol b/script/ghost/DeployGhostMintHelper.s.sol index 36e3484..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, 0x249f82caa683a49Fe92F5E9518BbDBE443dfF1A2); + 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 580a5d3..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, 0x249f82caa683a49Fe92F5E9518BbDBE443dfF1A2); + GhostRedeemHelper helper = new GhostRedeemHelper{salt: bytes32(0)}( + 0xE2A7f267124AC3E4131f27b9159c78C521A44F3c, 0x249f82caa683a49Fe92F5E9518BbDBE443dfF1A2 + ); vm.stopBroadcast(); console2.log("Ghost redeem helper deployed at", address(helper)); }