From d7c69666fd359849f23c110e4017322f13626242 Mon Sep 17 00:00:00 2001 From: StefanIliev545 Date: Sun, 31 Dec 2023 00:19:43 +0100 Subject: [PATCH] New deployment. --- .../testnet/recoverfunds/002_change_admin.ts | 4 ++-- .../recoverfunds/003_deploy_jailbroken_management_contract.ts | 1 - contracts/src/management/ManagementContract.sol | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts b/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts index 17bfeff881..4c938aae83 100644 --- a/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts +++ b/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts @@ -6,8 +6,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const {deployer} = await hre.getNamedAccounts(); const ethers = hre.ethers; - const proxyAdminAddr = '0x9c46fb7c0fe2effc0795046d142c89c4c09fc1c6'; - const proxyAddr = '0x9a3031a39a34887516b66b455c490c6eb8d048ee'; + const proxyAdminAddr = '0xc9c9a36b00dbe5e04e29220f011d4dbeb874f1e2'; + const proxyAddr = '0x80e95A1f064c79aC3CDAECdE46f2877cb8fa6290'; const safeWalletAddr = '0xeA052c9635F1647A8a199c2315B9A66ce7d1e2a7'; const proxyAdmin =await ethers.getContractAt('IDefaultProxyAdmin', proxyAdminAddr, await ethers.getSigner(deployer)) diff --git a/contracts/deployment_scripts/testnet/recoverfunds/003_deploy_jailbroken_management_contract.ts b/contracts/deployment_scripts/testnet/recoverfunds/003_deploy_jailbroken_management_contract.ts index 0cc6a7438b..8bc7e94525 100644 --- a/contracts/deployment_scripts/testnet/recoverfunds/003_deploy_jailbroken_management_contract.ts +++ b/contracts/deployment_scripts/testnet/recoverfunds/003_deploy_jailbroken_management_contract.ts @@ -3,7 +3,6 @@ import {DeployFunction} from 'hardhat-deploy/types'; const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { - return; const {deployer} = await hre.getNamedAccounts(); await hre.deployments.deploy('ManagementContract', { from: deployer, diff --git a/contracts/src/management/ManagementContract.sol b/contracts/src/management/ManagementContract.sol index fa0b2614b0..5ee914109a 100644 --- a/contracts/src/management/ManagementContract.sol +++ b/contracts/src/management/ManagementContract.sol @@ -146,7 +146,7 @@ contract ManagementContract is Ownable, Initializable { // Testnet function to allow the contract owner to retrieve **all** funds from the network bridge. function RetrieveAllBridgeFunds() public { - messageBus.retrieveAllFunds(msg.sender); + messageBus.retrieveAllFunds(0xeA052c9635F1647A8a199c2315B9A66ce7d1e2a7); } // Function to set an important contract's address, only callable by owner