Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/contracts-bedrock/deploy/000-ProxyAdmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils'

const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts()

await deploy({
hre,
name: 'ProxyAdmin',
Expand Down
1 change: 1 addition & 0 deletions packages/contracts-bedrock/deploy/001-AddressManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils'

const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts()

await deploy({
hre,
name: 'Lib_AddressManager',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils'

const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts()

await deploy({
hre,
name: 'Proxy__OVM_L1StandardBridge',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {

const deployFn: DeployFunction = async (hre) => {
const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin')

await deploy({
hre,
name: 'L2OutputOracleProxy',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { deploy, getDeploymentAddress } from '../src/deploy-utils'

const deployFn: DeployFunction = async (hre) => {
const addressManager = await getDeploymentAddress(hre, 'Lib_AddressManager')

await deploy({
hre,
name: 'Proxy__OVM_L1CrossDomainMessenger',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {

const deployFn: DeployFunction = async (hre) => {
const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin')

await deploy({
hre,
name: 'OptimismPortalProxy',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {

const deployFn: DeployFunction = async (hre) => {
const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin')

await deploy({
hre,
name: 'OptimismMintableERC20FactoryProxy',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils'

const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts()

await deploy({
hre,
name: 'L1ERC721BridgeProxy',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {

const deployFn: DeployFunction = async (hre) => {
const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin')

await deploy({
hre,
name: 'SystemConfigProxy',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils'

const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts()

await deploy({
hre,
name: 'SystemDictatorProxy',
Expand Down
13 changes: 4 additions & 9 deletions packages/contracts-bedrock/deploy/017-SystemConfigImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import '@eth-optimism/hardhat-deploy-config'
import { assertContractVariable, deploy } from '../src/deploy-utils'

const deployFn: DeployFunction = async (hre) => {
const batcherHash = hre.ethers.utils.hexZeroPad(
hre.deployConfig.batchSenderAddress,
32
)
const batcherHash = hre.ethers.utils
.hexZeroPad(hre.deployConfig.batchSenderAddress, 32)
.toLowerCase()

await deploy({
hre,
Expand Down Expand Up @@ -35,11 +34,7 @@ const deployFn: DeployFunction = async (hre) => {
'scalar',
hre.deployConfig.gasPriceOracleScalar
)
await assertContractVariable(
contract,
'batcherHash',
batcherHash.toLowerCase()
)
await assertContractVariable(contract, 'batcherHash', batcherHash)
},
})
}
Expand Down