Commit 5d41653d authored by Kelvin Fichter's avatar Kelvin Fichter

maint(ctb): standardized whitespace in deploys

Standardizes the whitespace in deployment files. I have nothing better
to do right now.
parent a7cfdeb1
...@@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils' ...@@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts() const { deployer } = await hre.getNamedAccounts()
await deploy({ await deploy({
hre, hre,
name: 'ProxyAdmin', name: 'ProxyAdmin',
......
...@@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils' ...@@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts() const { deployer } = await hre.getNamedAccounts()
await deploy({ await deploy({
hre, hre,
name: 'Lib_AddressManager', name: 'Lib_AddressManager',
......
...@@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils' ...@@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts() const { deployer } = await hre.getNamedAccounts()
await deploy({ await deploy({
hre, hre,
name: 'Proxy__OVM_L1StandardBridge', name: 'Proxy__OVM_L1StandardBridge',
......
...@@ -8,6 +8,7 @@ import { ...@@ -8,6 +8,7 @@ import {
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin') const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin')
await deploy({ await deploy({
hre, hre,
name: 'L2OutputOracleProxy', name: 'L2OutputOracleProxy',
......
...@@ -4,6 +4,7 @@ import { deploy, getDeploymentAddress } from '../src/deploy-utils' ...@@ -4,6 +4,7 @@ import { deploy, getDeploymentAddress } from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
const addressManager = await getDeploymentAddress(hre, 'Lib_AddressManager') const addressManager = await getDeploymentAddress(hre, 'Lib_AddressManager')
await deploy({ await deploy({
hre, hre,
name: 'Proxy__OVM_L1CrossDomainMessenger', name: 'Proxy__OVM_L1CrossDomainMessenger',
......
...@@ -8,6 +8,7 @@ import { ...@@ -8,6 +8,7 @@ import {
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin') const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin')
await deploy({ await deploy({
hre, hre,
name: 'OptimismPortalProxy', name: 'OptimismPortalProxy',
......
...@@ -8,6 +8,7 @@ import { ...@@ -8,6 +8,7 @@ import {
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin') const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin')
await deploy({ await deploy({
hre, hre,
name: 'OptimismMintableERC20FactoryProxy', name: 'OptimismMintableERC20FactoryProxy',
......
...@@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils' ...@@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts() const { deployer } = await hre.getNamedAccounts()
await deploy({ await deploy({
hre, hre,
name: 'L1ERC721BridgeProxy', name: 'L1ERC721BridgeProxy',
......
...@@ -8,6 +8,7 @@ import { ...@@ -8,6 +8,7 @@ import {
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin') const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin')
await deploy({ await deploy({
hre, hre,
name: 'SystemConfigProxy', name: 'SystemConfigProxy',
......
...@@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils' ...@@ -4,6 +4,7 @@ import { assertContractVariable, deploy } from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts() const { deployer } = await hre.getNamedAccounts()
await deploy({ await deploy({
hre, hre,
name: 'SystemDictatorProxy', name: 'SystemDictatorProxy',
......
...@@ -4,10 +4,9 @@ import '@eth-optimism/hardhat-deploy-config' ...@@ -4,10 +4,9 @@ import '@eth-optimism/hardhat-deploy-config'
import { assertContractVariable, deploy } from '../src/deploy-utils' import { assertContractVariable, deploy } from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
const batcherHash = hre.ethers.utils.hexZeroPad( const batcherHash = hre.ethers.utils
hre.deployConfig.batchSenderAddress, .hexZeroPad(hre.deployConfig.batchSenderAddress, 32)
32 .toLowerCase()
)
await deploy({ await deploy({
hre, hre,
...@@ -35,11 +34,7 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -35,11 +34,7 @@ const deployFn: DeployFunction = async (hre) => {
'scalar', 'scalar',
hre.deployConfig.gasPriceOracleScalar hre.deployConfig.gasPriceOracleScalar
) )
await assertContractVariable( await assertContractVariable(contract, 'batcherHash', batcherHash)
contract,
'batcherHash',
batcherHash.toLowerCase()
)
}, },
}) })
} }
......
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