Skip to content

Commit 82d5627

Browse files
committed
add test
1 parent a0688ea commit 82d5627

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/L1GasPriceOracle.t.sol

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,4 +312,19 @@ contract L1GasPriceOracleTest is DSTestPlus {
312312

313313
assertEq(oracle.getL1Fee(_data), (_baseTerm + _penaltyTerm) / PRECISION);
314314
}
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+
assertFalse(oracle.isGalileo());
324+
325+
// GalileoV2 upgrade
326+
hevm.store(address(oracle), bytes32(uint256(12)), bytes32(uint256(1)));
327+
assertTrue(oracle.isFeynman());
328+
assertTrue(oracle.isGalileo());
329+
}
315330
}

0 commit comments

Comments
 (0)