We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2e4f4a commit cb8a8a9Copy full SHA for cb8a8a9
contracts/upgrades/GraphProxy.sol
@@ -68,13 +68,13 @@ contract GraphProxy is GraphProxyStorage {
68
* @dev Admin function for new implementation to accept its role as implementation.
69
*/
70
function acceptUpgrade() external {
71
- address pendingImplementation = _pendingimplementation();
+ address _pendingImplementation = _pendingimplementation();
72
require(
73
- pendingImplementation != address(0) && msg.sender == pendingImplementation,
+ _pendingImplementation != address(0) && msg.sender == _pendingImplementation,
74
"Caller must be the pending implementation"
75
);
76
77
- _setImplementation(pendingImplementation);
+ _setImplementation(_pendingImplementation);
78
_setPendingImplementation(address(0));
79
}
80
0 commit comments