From 39224292b1587614d0550200b3816ef0b497d457 Mon Sep 17 00:00:00 2001 From: StefanIliev545 Date: Mon, 18 Dec 2023 13:40:59 +0200 Subject: [PATCH] Change for other stuck eth. --- .../testnet/recoverfunds/002_change_admin.ts | 10 +++++++--- .../003_deploy_jailbroken_management_contract.ts | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts b/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts index 8c054bafc0..17bfeff881 100644 --- a/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts +++ b/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts @@ -3,11 +3,15 @@ import {DeployFunction} from 'hardhat-deploy/types'; const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { - return; const {deployer} = await hre.getNamedAccounts(); const ethers = hre.ethers; - const proxyAdmin =await ethers.getContractAt('IDefaultProxyAdmin', '0xFFa0feA0cb522f3d0CE644B9a111215ACbEb061B', await ethers.getSigner(deployer)) - const tx = await proxyAdmin.changeProxyAdmin('0xEde0fC70C4B67916B8d2037dE24cD18BF26e5069', '0xeA052c9635F1647A8a199c2315B9A66ce7d1e2a7') + + const proxyAdminAddr = '0x9c46fb7c0fe2effc0795046d142c89c4c09fc1c6'; + const proxyAddr = '0x9a3031a39a34887516b66b455c490c6eb8d048ee'; + const safeWalletAddr = '0xeA052c9635F1647A8a199c2315B9A66ce7d1e2a7'; + + const proxyAdmin =await ethers.getContractAt('IDefaultProxyAdmin', proxyAdminAddr, await ethers.getSigner(deployer)) + const tx = await proxyAdmin.changeProxyAdmin(proxyAddr, safeWalletAddr) const receipt = await tx.wait(); if (receipt.status != 1) { console.error('Unable to change proxy admin'); 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 8bc7e94525..0cc6a7438b 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,6 +3,7 @@ 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,