Skip to content

Commit

Permalink
Receiving UpgradeableMaster in constructor of UpgradeGatekeeper.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihor Barenblat committed Mar 27, 2020
1 parent 4bfcbae commit ec43d33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/contracts/Proxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "./Upgradeable.sol";


/// @title Proxy Contract
/// @dev NOTICE: Proxy must implement UpgradeableMaster to prevent calling some function of it not by master of proxy
/// @dev NOTICE: Proxy must implement UpgradeableMaster interface to prevent calling some function of it not by master of proxy
/// @author Matter Labs
contract Proxy is Upgradeable, UpgradeableMaster, Ownable {

Expand Down
6 changes: 3 additions & 3 deletions contracts/contracts/UpgradeGatekeeper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ contract UpgradeGatekeeper is UpgradeEvents, Ownable {
UpgradeableMaster public mainContract;

/// @notice Contract constructor
/// @param _upgradeableMasterAddress Address of contract which defines notice period duration and allows finish upgrade during preparation of it
/// @param _mainContract Contract which defines notice period duration and allows finish upgrade during preparation of it
/// @dev Calls Ownable contract constructor
constructor(address _upgradeableMasterAddress) Ownable(msg.sender) public {
mainContract = UpgradeableMaster(_upgradeableMasterAddress);
constructor(UpgradeableMaster _mainContract) Ownable(msg.sender) public {
mainContract = _mainContract;
}

/// @notice Adds a new upgradeable contract to the list of contracts managed by the gatekeeper
Expand Down

0 comments on commit ec43d33

Please sign in to comment.