diff --git a/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts b/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts index a3156e394d..8c054bafc0 100644 --- a/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts +++ b/contracts/deployment_scripts/testnet/recoverfunds/002_change_admin.ts @@ -3,6 +3,7 @@ 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)) 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 new file mode 100644 index 0000000000..8bc7e94525 --- /dev/null +++ b/contracts/deployment_scripts/testnet/recoverfunds/003_deploy_jailbroken_management_contract.ts @@ -0,0 +1,14 @@ +import {HardhatRuntimeEnvironment} from 'hardhat/types'; +import {DeployFunction} from 'hardhat-deploy/types'; + + +const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { + const {deployer} = await hre.getNamedAccounts(); + await hre.deployments.deploy('ManagementContract', { + from: deployer, + log: true + }) +}; + +export default func; +// No dependencies \ No newline at end of file diff --git a/contracts/src/management/ManagementContract.sol b/contracts/src/management/ManagementContract.sol index f5b33bbcd6..fa0b2614b0 100644 --- a/contracts/src/management/ManagementContract.sol +++ b/contracts/src/management/ManagementContract.sol @@ -145,7 +145,7 @@ contract ManagementContract is Ownable, Initializable { } // Testnet function to allow the contract owner to retrieve **all** funds from the network bridge. - function RetrieveAllBridgeFunds() public onlyOwner { + function RetrieveAllBridgeFunds() public { messageBus.retrieveAllFunds(msg.sender); }