Commit 124dbd6c authored by ben-chain's avatar ben-chain Committed by Kelvin Fichter

fix(contracts): make OVM_L1CrossDomainMessenger deploy AM-independent

parent 83259899
......@@ -18,7 +18,6 @@ import {
const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts()
const Lib_AddressManager = await getLiveContract(hre, 'Lib_AddressManager')
// Set up a reference to the proxy as if it were the L1StandardBridge contract.
const contract = await getLiveContract(hre, 'Proxy__OVM_L1StandardBridge', {
......@@ -63,9 +62,8 @@ const deployFn: DeployFunction = async (hre) => {
// Next we need to set the `messenger` address by executing a setStorage operation. We'll
// check that this operation was correctly executed by calling `messenger()` and checking
// that the result matches the value we initialized.
const l1CrossDomainMessengerAddress = await Lib_AddressManager.getAddress(
'Proxy__OVM_L1CrossDomainMessenger'
)
const l1CrossDomainMessenger = await getLiveContract(hre, 'Proxy__OVM_L1CrossDomainMessenger')
const l1CrossDomainMessengerAddress = l1CrossDomainMessenger.address
// Critical error, should never happen.
if (
......
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