Skip to content

Commit cb8a8a9

Browse files
committed
upgrades: rename local variable to avoid shadowing
1 parent b2e4f4a commit cb8a8a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/upgrades/GraphProxy.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ contract GraphProxy is GraphProxyStorage {
6868
* @dev Admin function for new implementation to accept its role as implementation.
6969
*/
7070
function acceptUpgrade() external {
71-
address pendingImplementation = _pendingimplementation();
71+
address _pendingImplementation = _pendingimplementation();
7272
require(
73-
pendingImplementation != address(0) && msg.sender == pendingImplementation,
73+
_pendingImplementation != address(0) && msg.sender == _pendingImplementation,
7474
"Caller must be the pending implementation"
7575
);
7676

77-
_setImplementation(pendingImplementation);
77+
_setImplementation(_pendingImplementation);
7878
_setPendingImplementation(address(0));
7979
}
8080

0 commit comments

Comments
 (0)