File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,7 @@ abstract contract ERC1967Upgrade {
65
65
bytes memory data ,
66
66
bool forceCall
67
67
) internal {
68
- _setImplementation (newImplementation);
69
- emit Upgraded (newImplementation);
68
+ _upgradeTo (newImplementation);
70
69
if (data.length > 0 || forceCall) {
71
70
Address.functionDelegateCall (newImplementation, data);
72
71
}
@@ -103,8 +102,7 @@ abstract contract ERC1967Upgrade {
103
102
// Check rollback was effective
104
103
require (oldImplementation == _getImplementation (), "ERC1967Upgrade: upgrade breaks further upgrades " );
105
104
// Finally reset to the new implementation and log the upgrade
106
- _setImplementation (newImplementation);
107
- emit Upgraded (newImplementation);
105
+ _upgradeTo (newImplementation);
108
106
}
109
107
}
110
108
You can’t perform that action at this time.
0 commit comments