Commit 347fd37c authored by smartcontracts's avatar smartcontracts Committed by GitHub

fix(ctb): bug in deploy scripts (#2800)

Fixes a bug in the deploy script for the L1CrossDomainMessenger where
the L2OutputOracle was being passed into the constructor rather than the
OptimismPortal, breaking the contract.
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent f89fe181
---
'@eth-optimism/contracts-bedrock': patch
---
Fix bug in bedrock deploy scripts
......@@ -15,7 +15,7 @@ const deployFn: DeployFunction = async (hre) => {
})
const provider = hre.ethers.provider.getSigner(deployer)
const oracle = await hre.deployments.get('L2OutputOracle')
const portal = await hre.deployments.get('OptimismPortal')
const messenger = await hre.deployments.get('L1CrossDomainMessenger')
const L1CrossDomainMessenger = new Contract(
......@@ -24,9 +24,9 @@ const deployFn: DeployFunction = async (hre) => {
provider
)
const tx = await L1CrossDomainMessenger.initialize(oracle.address)
const tx = await L1CrossDomainMessenger.initialize(portal.address)
const receipt = await tx.wait()
console.log(`${receipt.transactionHash}: initialize(${oracle.address})`)
console.log(`${receipt.transactionHash}: initialize(${portal.address})`)
}
deployFn.tags = ['L1CrossDomainMessenger']
......
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