@@ -14,7 +14,7 @@ import "./Pausable.sol";
14
14
*/
15
15
contract Controller is Governed , Pausable , IController {
16
16
/// @dev Track contract ids to contract proxy address
17
- mapping (bytes32 => address ) private registry ;
17
+ mapping (bytes32 => address ) private _registry ;
18
18
19
19
/// Emitted when the proxy address for a protocol contract has been set
20
20
event SetContractProxy (bytes32 indexed id , address contractAddress );
@@ -59,7 +59,7 @@ contract Controller is Governed, Pausable, IController {
59
59
onlyGovernor
60
60
{
61
61
require (_contractAddress != address (0 ), "Contract address must be set " );
62
- registry [_id] = _contractAddress;
62
+ _registry [_id] = _contractAddress;
63
63
emit SetContractProxy (_id, _contractAddress);
64
64
}
65
65
@@ -68,7 +68,7 @@ contract Controller is Governed, Pausable, IController {
68
68
* @param _id Contract id (keccak256 hash of contract name)
69
69
*/
70
70
function unsetContractProxy (bytes32 _id ) external override onlyGovernor {
71
- registry [_id] = address (0 );
71
+ _registry [_id] = address (0 );
72
72
emit SetContractProxy (_id, address (0 ));
73
73
}
74
74
@@ -78,7 +78,7 @@ contract Controller is Governed, Pausable, IController {
78
78
* @return Address of the proxy contract for the provided id
79
79
*/
80
80
function getContractProxy (bytes32 _id ) public view override returns (address ) {
81
- return registry [_id];
81
+ return _registry [_id];
82
82
}
83
83
84
84
/**
@@ -88,7 +88,7 @@ contract Controller is Governed, Pausable, IController {
88
88
*/
89
89
function updateController (bytes32 _id , address _controller ) external override onlyGovernor {
90
90
require (_controller != address (0 ), "Controller must be set " );
91
- return IManaged (registry [_id]).setController (_controller);
91
+ return IManaged (_registry [_id]).setController (_controller);
92
92
}
93
93
94
94
// -- Pausing --
0 commit comments