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 ba1a870 commit 751240dCopy full SHA for 751240d
contracts/upgrades/GraphProxyStorage.sol
@@ -79,13 +79,14 @@ contract GraphProxyStorage {
79
* @param _newAdmin Address of the new proxy admin
80
*/
81
function _setAdmin(address _newAdmin) internal {
82
+ address oldAdmin = _getAdmin();
83
bytes32 slot = ADMIN_SLOT;
84
// solhint-disable-next-line no-inline-assembly
85
assembly {
86
sstore(slot, _newAdmin)
87
}
88
- emit AdminUpdated(_getAdmin(), _newAdmin);
89
+ emit AdminUpdated(oldAdmin, _newAdmin);
90
91
92
/**
0 commit comments