File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ contract GraphProxy is GraphProxyStorage {
23
23
);
24
24
25
25
_setAdmin (msg .sender );
26
- upgradeTo (_impl);
26
+ _setPendingImplementation (_impl);
27
27
}
28
28
29
29
/**
Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ contract GraphProxyStorage {
45
45
*/
46
46
event ImplementationUpdated (address oldImplementation , address newImplementation );
47
47
48
+ /**
49
+ * @dev Emitted when the admin account has changed.
50
+ */
51
+ event AdminUpdated (address oldAdmin , address newAdmin );
52
+
48
53
/**
49
54
* @dev Modifier to check whether the `msg.sender` is the admin.
50
55
*/
@@ -72,6 +77,8 @@ contract GraphProxyStorage {
72
77
assembly {
73
78
sstore (slot, _newAdmin)
74
79
}
80
+
81
+ emit AdminUpdated (_admin (), _newAdmin);
75
82
}
76
83
77
84
/**
You can’t perform that action at this time.
0 commit comments