Commit a70e0c9a authored by Maurelian's avatar Maurelian

feat(ctb): Add L1ERC721Bridge admin deploy check

parent 21ea9dfa
......@@ -419,7 +419,7 @@ contract SystemDictator is OwnableUpgradeable {
}
/**
* @notice Calls the next remaings steps of the migration process.
* @notice Calls the remaining steps of the migration process.
*/
function phase2() external onlyOwner {
step3();
......
......@@ -33,6 +33,7 @@ const deployFn: DeployFunction = async (hre) => {
L2OutputOracle,
OptimismPortal,
OptimismMintableERC20Factory,
L1ERC721BridgeProxy,
L1ERC721Bridge,
] = await getContractsFromArtifacts(hre, [
{
......@@ -76,6 +77,9 @@ const deployFn: DeployFunction = async (hre) => {
iface: 'OptimismMintableERC20Factory',
signerOrProvider: deployer,
},
{
name: 'L1ERC721BridgeProxy',
},
{
name: 'L1ERC721BridgeProxy',
iface: 'L1ERC721Bridge',
......@@ -222,6 +226,12 @@ const deployFn: DeployFunction = async (hre) => {
})) === ProxyAdmin.address
)
assert(
(await L1ERC721BridgeProxy.callStatic.admin({
from: ProxyAdmin.address,
})) === ProxyAdmin.address
)
// Step 5 checks
// Check L2OutputOracle was initialized properly.
await assertContractVariable(
......
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