@@ -14,7 +14,7 @@ import "./Pausable.sol";
1414 */
1515contract Controller is Governed , Pausable , IController {
1616 /// @dev Track contract ids to contract proxy address
17- mapping (bytes32 => address ) private registry ;
17+ mapping (bytes32 => address ) private _registry ;
1818
1919 /// Emitted when the proxy address for a protocol contract has been set
2020 event SetContractProxy (bytes32 indexed id , address contractAddress );
@@ -59,7 +59,7 @@ contract Controller is Governed, Pausable, IController {
5959 onlyGovernor
6060 {
6161 require (_contractAddress != address (0 ), "Contract address must be set " );
62- registry [_id] = _contractAddress;
62+ _registry [_id] = _contractAddress;
6363 emit SetContractProxy (_id, _contractAddress);
6464 }
6565
@@ -68,7 +68,7 @@ contract Controller is Governed, Pausable, IController {
6868 * @param _id Contract id (keccak256 hash of contract name)
6969 */
7070 function unsetContractProxy (bytes32 _id ) external override onlyGovernor {
71- registry [_id] = address (0 );
71+ _registry [_id] = address (0 );
7272 emit SetContractProxy (_id, address (0 ));
7373 }
7474
@@ -78,7 +78,7 @@ contract Controller is Governed, Pausable, IController {
7878 * @return Address of the proxy contract for the provided id
7979 */
8080 function getContractProxy (bytes32 _id ) public view override returns (address ) {
81- return registry [_id];
81+ return _registry [_id];
8282 }
8383
8484 /**
@@ -88,7 +88,7 @@ contract Controller is Governed, Pausable, IController {
8888 */
8989 function updateController (bytes32 _id , address _controller ) external override onlyGovernor {
9090 require (_controller != address (0 ), "Controller must be set " );
91- return IManaged (registry [_id]).setController (_controller);
91+ return IManaged (_registry [_id]).setController (_controller);
9292 }
9393
9494 // -- Pausing --
0 commit comments