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 { ...@@ -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 { function phase2() external onlyOwner {
step3(); step3();
......
...@@ -33,6 +33,7 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -33,6 +33,7 @@ const deployFn: DeployFunction = async (hre) => {
L2OutputOracle, L2OutputOracle,
OptimismPortal, OptimismPortal,
OptimismMintableERC20Factory, OptimismMintableERC20Factory,
L1ERC721BridgeProxy,
L1ERC721Bridge, L1ERC721Bridge,
] = await getContractsFromArtifacts(hre, [ ] = await getContractsFromArtifacts(hre, [
{ {
...@@ -76,6 +77,9 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -76,6 +77,9 @@ const deployFn: DeployFunction = async (hre) => {
iface: 'OptimismMintableERC20Factory', iface: 'OptimismMintableERC20Factory',
signerOrProvider: deployer, signerOrProvider: deployer,
}, },
{
name: 'L1ERC721BridgeProxy',
},
{ {
name: 'L1ERC721BridgeProxy', name: 'L1ERC721BridgeProxy',
iface: 'L1ERC721Bridge', iface: 'L1ERC721Bridge',
...@@ -222,6 +226,12 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -222,6 +226,12 @@ const deployFn: DeployFunction = async (hre) => {
})) === ProxyAdmin.address })) === ProxyAdmin.address
) )
assert(
(await L1ERC721BridgeProxy.callStatic.admin({
from: ProxyAdmin.address,
})) === ProxyAdmin.address
)
// Step 5 checks // Step 5 checks
// Check L2OutputOracle was initialized properly. // Check L2OutputOracle was initialized properly.
await assertContractVariable( 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