Skip to content

Commit

Permalink
fix[contracts]: remove part of MultiMessageRelayer deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcontracts committed Jun 22, 2021
1 parent dd8edc7 commit a408132
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/contracts/deploy/014-OVM_L1MultiMessageRelayer.deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { DeployFunction } from 'hardhat-deploy/dist/types'
import {
deployAndRegister,
getDeployedContract,
registerAddress,
} from '../src/hardhat-deploy-ethers'

const deployFn: DeployFunction = async (hre) => {
Expand All @@ -19,20 +18,6 @@ const deployFn: DeployFunction = async (hre) => {
name: 'OVM_L1MultiMessageRelayer',
args: [Lib_AddressManager.address],
})

// OVM_L2MessageRelayer *must* be set to multi message relayer address on mainnet.
if (hre.network.name.includes('mainnet')) {
const OVM_L1MultiMessageRelayer = await getDeployedContract(
hre,
'OVM_L1MultiMessageRelayer'
)

await registerAddress({
hre,
name: 'OVM_L2MessageRelayer',
address: OVM_L1MultiMessageRelayer.address,
})
}
}

deployFn.dependencies = ['Lib_AddressManager']
Expand Down

0 comments on commit a408132

Please sign in to comment.