Commit bd5f1d81 authored by Maurelian's avatar Maurelian

contracts-bedrock: Add superchain config to post ChainAssertions

parent d3276380
......@@ -186,4 +186,11 @@ library ChainAssertions {
require(superchainConfig.guardian() == _cfg.portalGuardian());
require(superchainConfig.paused() == false);
}
/// @notice Asserts that the SuperchainConfig is setup correctly
function checkSuperchainConfig(Types.ContractSet memory _proxies, DeployConfig _cfg) internal view {
SuperchainConfig superchainConfig = SuperchainConfig(_proxies.SuperchainConfig);
require(superchainConfig.guardian() == _cfg.portalGuardian());
require(superchainConfig.paused() == false);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment