@@ -19,7 +19,7 @@ contract GraphProxy is GraphProxyStorage {
1919 * the sender is the admin.
2020 */
2121 modifier ifAdmin () {
22- if (msg .sender == _admin ()) {
22+ if (msg .sender == _getAdmin ()) {
2323 _;
2424 } else {
2525 _fallback ();
@@ -31,7 +31,7 @@ contract GraphProxy is GraphProxyStorage {
3131 * the sender is the admin or pending implementation.
3232 */
3333 modifier ifAdminOrPendingImpl () {
34- if (msg .sender == _admin () || msg .sender == _pendingImplementation ()) {
34+ if (msg .sender == _getAdmin () || msg .sender == _getPendingImplementation ()) {
3535 _;
3636 } else {
3737 _fallback ();
@@ -67,7 +67,7 @@ contract GraphProxy is GraphProxyStorage {
6767 * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
6868 */
6969 function admin () external ifAdminOrPendingImpl returns (address ) {
70- return _admin ();
70+ return _getAdmin ();
7171 }
7272
7373 /**
@@ -80,7 +80,7 @@ contract GraphProxy is GraphProxyStorage {
8080 * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
8181 */
8282 function implementation () external ifAdminOrPendingImpl returns (address ) {
83- return _implementation ();
83+ return _getImplementation ();
8484 }
8585
8686 /**
@@ -93,7 +93,7 @@ contract GraphProxy is GraphProxyStorage {
9393 * `0x9e5eddc59e0b171f57125ab86bee043d9128098c3a6b9adb4f2e86333c2f6f8c`
9494 */
9595 function pendingImplementation () external ifAdminOrPendingImpl returns (address ) {
96- return _pendingImplementation ();
96+ return _getPendingImplementation ();
9797 }
9898
9999 /**
@@ -129,15 +129,15 @@ contract GraphProxy is GraphProxyStorage {
129129 function acceptUpgradeAndCall (bytes calldata data ) external ifAdminOrPendingImpl {
130130 _acceptUpgrade ();
131131 // solhint-disable-next-line avoid-low-level-calls
132- (bool success , ) = _implementation ().delegatecall (data);
132+ (bool success , ) = _getImplementation ().delegatecall (data);
133133 require (success);
134134 }
135135
136136 /**
137137 * @dev Admin function for new implementation to accept its role as implementation.
138138 */
139139 function _acceptUpgrade () internal {
140- address _pendingImplementation = _pendingImplementation ();
140+ address _pendingImplementation = _getPendingImplementation ();
141141 require (Address.isContract (_pendingImplementation), "Impl must be a contract " );
142142 require (_pendingImplementation != address (0 ), "Impl cannot be zero address " );
143143 require (msg .sender == _pendingImplementation, "Only pending implementation " );
@@ -152,7 +152,7 @@ contract GraphProxy is GraphProxyStorage {
152152 * external caller.
153153 */
154154 function _fallback () internal {
155- require (msg .sender != _admin (), "Cannot fallback to proxy target " );
155+ require (msg .sender != _getAdmin (), "Cannot fallback to proxy target " );
156156
157157 assembly {
158158 // (a) get free memory pointer
0 commit comments