Commit 18b5f8ac authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #5263 from ethereum-optimism/fix/dynamic-config-logging

contracts-bedrock: better deployment logging
parents ca9f52a9 be2222e1
...@@ -182,6 +182,8 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -182,6 +182,8 @@ const deployFn: DeployFunction = async (hre) => {
false // do not pause the the OptimismPortal when initializing false // do not pause the the OptimismPortal when initializing
) )
} else { } else {
// pause the OptimismPortal when initializing
const optimismPortalPaused = true
const tx = await SystemDictator.populateTransaction.updateDynamicConfig( const tx = await SystemDictator.populateTransaction.updateDynamicConfig(
{ {
l2OutputOracleStartingBlockNumber: l2OutputOracleStartingBlockNumber:
...@@ -189,9 +191,22 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -189,9 +191,22 @@ const deployFn: DeployFunction = async (hre) => {
l2OutputOracleStartingTimestamp: l2OutputOracleStartingTimestamp:
hre.deployConfig.l2OutputOracleStartingTimestamp, hre.deployConfig.l2OutputOracleStartingTimestamp,
}, },
true optimismPortalPaused
) )
console.log(`Please update dynamic oracle config...`) console.log(`Please update dynamic oracle config...`)
console.log(
JSON.stringify(
{
l2OutputOracleStartingBlockNumber:
hre.deployConfig.l2OutputOracleStartingBlockNumber,
l2OutputOracleStartingTimestamp:
hre.deployConfig.l2OutputOracleStartingTimestamp,
optimismPortalPaused,
},
null,
2
)
)
console.log(`MSD address: ${SystemDictator.address}`) console.log(`MSD address: ${SystemDictator.address}`)
console.log(`JSON:`) console.log(`JSON:`)
console.log(jsonifyTransaction(tx)) console.log(jsonifyTransaction(tx))
......
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