Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/contracts-bedrock/test/L1/ProtocolVersions.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ contract ProtocolVersions_Initialize_Test is ProtocolVersions_TestInit {
contract ProtocolVersions_SetRequired_Test is ProtocolVersions_TestInit {
/// @notice Tests that `setRequired` updates the required protocol version successfully.
function testFuzz_setRequired_succeeds(uint256 _version) external {
_version = bound(_version, 0, type(uint256).max);

vm.expectEmit(true, true, true, true);
emit ConfigUpdate(0, IProtocolVersions.UpdateType.REQUIRED_PROTOCOL_VERSION, abi.encode(_version));

Expand All @@ -97,6 +99,8 @@ contract ProtocolVersions_SetRequired_Test is ProtocolVersions_TestInit {
contract ProtocolVersions_SetRecommended_Test is ProtocolVersions_TestInit {
/// @notice Tests that `setRecommended` updates the recommended protocol version successfully.
function testFuzz_setRecommended_succeeds(uint256 _version) external {
_version = bound(_version, 0, type(uint256).max);

vm.expectEmit(true, true, true, true);
emit ConfigUpdate(0, IProtocolVersions.UpdateType.RECOMMENDED_PROTOCOL_VERSION, abi.encode(_version));

Expand Down