@@ -62,8 +62,9 @@ contract TestUpgrades is Test, INttManagerEvents, IRateLimiterEvents {
62
62
63
63
vm.chainId (chainId1);
64
64
DummyToken t1 = new DummyToken ();
65
- NttManager implementation =
66
- new MockNttManagerContract (address (t1), INttManager.Mode.LOCKING, chainId1, 1 days);
65
+ NttManager implementation = new MockNttManagerContract (
66
+ address (t1), INttManager.Mode.LOCKING, chainId1, 1 days, false
67
+ );
67
68
68
69
nttManagerChain1 =
69
70
MockNttManagerContract (address (new ERC1967Proxy (address (implementation), "" )));
@@ -89,8 +90,9 @@ contract TestUpgrades is Test, INttManagerEvents, IRateLimiterEvents {
89
90
// Chain 2 setup
90
91
vm.chainId (chainId2);
91
92
DummyToken t2 = new DummyTokenMintAndBurn ();
92
- NttManager implementationChain2 =
93
- new MockNttManagerContract (address (t2), INttManager.Mode.BURNING, chainId2, 1 days);
93
+ NttManager implementationChain2 = new MockNttManagerContract (
94
+ address (t2), INttManager.Mode.BURNING, chainId2, 1 days, false
95
+ );
94
96
95
97
nttManagerChain2 =
96
98
MockNttManagerContract (address (new ERC1967Proxy (address (implementationChain2), "" )));
@@ -140,7 +142,7 @@ contract TestUpgrades is Test, INttManagerEvents, IRateLimiterEvents {
140
142
function test_basicUpgradeNttManager () public {
141
143
// Basic call to upgrade with the same contact as ewll
142
144
NttManager newImplementation = new MockNttManagerContract (
143
- address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days
145
+ address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days, false
144
146
);
145
147
nttManagerChain1.upgrade (address (newImplementation));
146
148
@@ -167,13 +169,13 @@ contract TestUpgrades is Test, INttManagerEvents, IRateLimiterEvents {
167
169
function test_doubleUpgradeNttManager () public {
168
170
// Basic call to upgrade with the same contact as ewll
169
171
NttManager newImplementation = new MockNttManagerContract (
170
- address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days
172
+ address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days, false
171
173
);
172
174
nttManagerChain1.upgrade (address (newImplementation));
173
175
basicFunctionality ();
174
176
175
177
newImplementation = new MockNttManagerContract (
176
- address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days
178
+ address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days, false
177
179
);
178
180
nttManagerChain1.upgrade (address (newImplementation));
179
181
@@ -204,7 +206,7 @@ contract TestUpgrades is Test, INttManagerEvents, IRateLimiterEvents {
204
206
function test_storageSlotNttManager () public {
205
207
// Basic call to upgrade with the same contact as ewll
206
208
NttManager newImplementation = new MockNttManagerStorageLayoutChange (
207
- address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days
209
+ address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days, false
208
210
);
209
211
nttManagerChain1.upgrade (address (newImplementation));
210
212
@@ -241,7 +243,7 @@ contract TestUpgrades is Test, INttManagerEvents, IRateLimiterEvents {
241
243
function test_callMigrateNttManager () public {
242
244
// Basic call to upgrade with the same contact as ewll
243
245
NttManager newImplementation = new MockNttManagerMigrateBasic (
244
- address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days
246
+ address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days, false
245
247
);
246
248
247
249
vm.expectRevert ("Proper migrate called " );
@@ -273,7 +275,7 @@ contract TestUpgrades is Test, INttManagerEvents, IRateLimiterEvents {
273
275
274
276
// Basic call to upgrade with the same contact as ewll
275
277
NttManager newImplementation = new MockNttManagerImmutableCheck (
276
- address (tnew), INttManager.Mode.LOCKING, chainId1, 1 days
278
+ address (tnew), INttManager.Mode.LOCKING, chainId1, 1 days, false
277
279
);
278
280
279
281
vm.expectRevert (); // Reverts with a panic on the assert. So, no way to tell WHY this happened.
@@ -311,7 +313,7 @@ contract TestUpgrades is Test, INttManagerEvents, IRateLimiterEvents {
311
313
312
314
// Basic call to upgrade with the same contact as ewll
313
315
NttManager newImplementation = new MockNttManagerImmutableRemoveCheck (
314
- address (tnew), INttManager.Mode.LOCKING, chainId1, 1 days
316
+ address (tnew), INttManager.Mode.LOCKING, chainId1, 1 days, false
315
317
);
316
318
317
319
// Allow an upgrade, since we enabled the ability to edit the immutables within the code
@@ -350,7 +352,7 @@ contract TestUpgrades is Test, INttManagerEvents, IRateLimiterEvents {
350
352
351
353
// Basic call to upgrade so that we can get the real implementation.
352
354
NttManager newImplementation = new MockNttManagerContract (
353
- address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days
355
+ address (nttManagerChain1.token ()), INttManager.Mode.LOCKING, chainId1, 1 days, false
354
356
);
355
357
nttManagerChain1.upgrade (address (newImplementation));
356
358
@@ -594,8 +596,9 @@ contract TestInitialize is Test {
594
596
595
597
vm.chainId (chainId1);
596
598
DummyToken t1 = new DummyToken ();
597
- NttManager implementation =
598
- new MockNttManagerContract (address (t1), INttManager.Mode.LOCKING, chainId1, 1 days);
599
+ NttManager implementation = new MockNttManagerContract (
600
+ address (t1), INttManager.Mode.LOCKING, chainId1, 1 days, false
601
+ );
599
602
600
603
nttManagerChain1 =
601
604
MockNttManagerContract (address (new ERC1967Proxy (address (implementation), "" )));
@@ -614,8 +617,9 @@ contract TestInitialize is Test {
614
617
615
618
vm.chainId (chainId1);
616
619
DummyToken t1 = new DummyToken ();
617
- NttManager implementation =
618
- new MockNttManagerContract (address (t1), INttManager.Mode.LOCKING, chainId1, 1 days);
620
+ NttManager implementation = new MockNttManagerContract (
621
+ address (t1), INttManager.Mode.LOCKING, chainId1, 1 days, false
622
+ );
619
623
620
624
nttManagerChain1 =
621
625
MockNttManagerContract (address (new ERC1967Proxy (address (implementation), "" )));
0 commit comments