@@ -19,7 +19,7 @@ contract GraphProxy is GraphProxyStorage {
19
19
* the sender is the admin.
20
20
*/
21
21
modifier ifAdmin () {
22
- if (msg .sender == _admin ()) {
22
+ if (msg .sender == _getAdmin ()) {
23
23
_;
24
24
} else {
25
25
_fallback ();
@@ -31,7 +31,7 @@ contract GraphProxy is GraphProxyStorage {
31
31
* the sender is the admin or pending implementation.
32
32
*/
33
33
modifier ifAdminOrPendingImpl () {
34
- if (msg .sender == _admin () || msg .sender == _pendingImplementation ()) {
34
+ if (msg .sender == _getAdmin () || msg .sender == _getPendingImplementation ()) {
35
35
_;
36
36
} else {
37
37
_fallback ();
@@ -67,7 +67,7 @@ contract GraphProxy is GraphProxyStorage {
67
67
* `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
68
68
*/
69
69
function admin () external ifAdminOrPendingImpl returns (address ) {
70
- return _admin ();
70
+ return _getAdmin ();
71
71
}
72
72
73
73
/**
@@ -80,7 +80,7 @@ contract GraphProxy is GraphProxyStorage {
80
80
* `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
81
81
*/
82
82
function implementation () external ifAdminOrPendingImpl returns (address ) {
83
- return _implementation ();
83
+ return _getImplementation ();
84
84
}
85
85
86
86
/**
@@ -93,7 +93,7 @@ contract GraphProxy is GraphProxyStorage {
93
93
* `0x9e5eddc59e0b171f57125ab86bee043d9128098c3a6b9adb4f2e86333c2f6f8c`
94
94
*/
95
95
function pendingImplementation () external ifAdminOrPendingImpl returns (address ) {
96
- return _pendingImplementation ();
96
+ return _getPendingImplementation ();
97
97
}
98
98
99
99
/**
@@ -129,15 +129,15 @@ contract GraphProxy is GraphProxyStorage {
129
129
function acceptUpgradeAndCall (bytes calldata data ) external ifAdminOrPendingImpl {
130
130
_acceptUpgrade ();
131
131
// solhint-disable-next-line avoid-low-level-calls
132
- (bool success , ) = _implementation ().delegatecall (data);
132
+ (bool success , ) = _getImplementation ().delegatecall (data);
133
133
require (success);
134
134
}
135
135
136
136
/**
137
137
* @dev Admin function for new implementation to accept its role as implementation.
138
138
*/
139
139
function _acceptUpgrade () internal {
140
- address _pendingImplementation = _pendingImplementation ();
140
+ address _pendingImplementation = _getPendingImplementation ();
141
141
require (Address.isContract (_pendingImplementation), "Impl must be a contract " );
142
142
require (_pendingImplementation != address (0 ), "Impl cannot be zero address " );
143
143
require (msg .sender == _pendingImplementation, "Only pending implementation " );
@@ -152,7 +152,7 @@ contract GraphProxy is GraphProxyStorage {
152
152
* external caller.
153
153
*/
154
154
function _fallback () internal {
155
- require (msg .sender != _admin (), "Cannot fallback to proxy target " );
155
+ require (msg .sender != _getAdmin (), "Cannot fallback to proxy target " );
156
156
157
157
assembly {
158
158
// (a) get free memory pointer
0 commit comments