Skip to content
Merged
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
23 changes: 7 additions & 16 deletions packages/contracts-bedrock/test/libraries/Predeploys.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ contract Predeploys_Unclassified_Test is Predeploys_TestInit {
function test_predeploys_succeeds() external {
_test_predeploys(Fork.ISTHMUS, false, false);
}

/// @notice Tests that the predeploy addresses are set correctly. They have code
/// and the proxied accounts have the correct admin. Using custom gas token.
function test_predeploys_customGasToken_succeeds() external {
skipIfDevFeatureDisabled(DevFeatures.CUSTOM_GAS_TOKEN);
_test_predeploys(Fork.ISTHMUS, false, true);
}
}

/// @title Predeploys_Interop_Unclassified_Test
Expand All @@ -167,19 +174,3 @@ contract Predeploys_UnclassifiedInterop_Test is Predeploys_TestInit {
_test_predeploys(Fork.INTEROP, false, false);
}
}

/// @title Predeploys_CustomGasToken_Test
/// @notice Tests the `Predeploys` contract with custom gas token.
contract Predeploys_CustomGasToken_Test is Predeploys_TestInit {
/// @notice Test setup. Enabling custom gas token.
function setUp() public virtual override {
super.setUp();
skipIfDevFeatureDisabled(DevFeatures.CUSTOM_GAS_TOKEN);
}

/// @notice Tests that the predeploy addresses are set correctly. They have code and the
/// proxied accounts have the correct admin. Using custom gas token.
function test_predeploysWithCustomGasToken_succeeds() external {
_test_predeploys(Fork.ISTHMUS, false, true);
}
}