@@ -18,7 +18,6 @@ import "./SecurityStore_1_1_6.sol";
18
18
contract UpgraderModule is BaseModule {
19
19
ControllerImpl private immutable controller_;
20
20
21
- address public immutable walletImplementation;
22
21
address [] public modulesToRemove;
23
22
address [] public modulesToAdd;
24
23
@@ -27,7 +26,6 @@ contract UpgraderModule is BaseModule {
27
26
28
27
constructor (
29
28
ControllerImpl _controller ,
30
- address _walletImplementation ,
31
29
address [] memory _modulesToAdd ,
32
30
address [] memory _modulesToRemove ,
33
31
address _oldSecurityStore ,
@@ -36,28 +34,13 @@ contract UpgraderModule is BaseModule {
36
34
BaseModule (_controller)
37
35
{
38
36
controller_ = _controller;
39
- walletImplementation = _walletImplementation;
40
37
modulesToAdd = _modulesToAdd;
41
38
modulesToRemove = _modulesToRemove;
42
39
43
40
oldSecurityStore = SecurityStore_1_1_6 (_oldSecurityStore);
44
41
newSecurityStore = SecurityStore (_newSecurityStore);
45
42
}
46
43
47
- function upgradeWalletImplementation (address payable wallet )
48
- external
49
- {
50
- require (msg .sender == address (this ), "NOT_ALLOWED " );
51
-
52
- if (walletImplementation != OwnedUpgradeabilityProxy (wallet).implementation ()) {
53
- bytes memory txData = abi.encodeWithSelector (
54
- OwnedUpgradeabilityProxy.upgradeTo.selector ,
55
- walletImplementation
56
- );
57
- transactCall (wallet, wallet, 0 , txData);
58
- }
59
- }
60
-
61
44
function migrateSecurityStore (address wallet )
62
45
internal
63
46
{
@@ -90,10 +73,6 @@ contract UpgraderModule is BaseModule {
90
73
{
91
74
address payable wallet = msg .sender ;
92
75
93
- if (walletImplementation != address (0 )) {
94
- try UpgraderModule (address (this )).upgradeWalletImplementation (wallet) {} catch {}
95
- }
96
-
97
76
BaseWallet w = BaseWallet (wallet);
98
77
99
78
// Upgrade the controller if different
0 commit comments