From b6617dd44790dd69797324263b0c61b706970a3d Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Thu, 17 Jun 2021 22:45:34 +0530 Subject: [PATCH] Added proxyAdmin Contract --- contracts/proxy/proxyMasterSigAdmin.sol | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 contracts/proxy/proxyMasterSigAdmin.sol diff --git a/contracts/proxy/proxyMasterSigAdmin.sol b/contracts/proxy/proxyMasterSigAdmin.sol new file mode 100644 index 0000000..ee9eadc --- /dev/null +++ b/contracts/proxy/proxyMasterSigAdmin.sol @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.7.0; + +import "@openzeppelin/contracts/proxy/ProxyAdmin.sol"; + +/** + * @dev This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an + * explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}. + */ +contract InstaMasterProxy is ProxyAdmin { + constructor(address masterAddress) { + require(masterAddress != address(0), "not-vaild-address"); + transferOwnership(masterAddress); + } +} \ No newline at end of file