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 a0688ea commit 82d5627Copy full SHA for 82d5627
src/test/L1GasPriceOracle.t.sol
@@ -312,4 +312,19 @@ contract L1GasPriceOracleTest is DSTestPlus {
312
313
assertEq(oracle.getL1Fee(_data), (_baseTerm + _penaltyTerm) / PRECISION);
314
}
315
+
316
+ function testSetStorageDuringUpgrade() external {
317
+ assertFalse(oracle.isFeynman());
318
+ assertFalse(oracle.isGalileo());
319
320
+ // Feynman upgrade
321
+ hevm.store(address(oracle), bytes32(uint256(11)), bytes32(uint256(1)));
322
+ assertTrue(oracle.isFeynman());
323
324
325
+ // GalileoV2 upgrade
326
+ hevm.store(address(oracle), bytes32(uint256(12)), bytes32(uint256(1)));
327
328
+ assertTrue(oracle.isGalileo());
329
+ }
330
0 commit comments