Commit 656a9b79 authored by Andreas Bigger's avatar Andreas Bigger Committed by Mark Tyneway

Remove final owner from dgf impl initialization.

parent b1903016
import assert from 'assert'
import { DeployFunction } from 'hardhat-deploy/dist/types' import { DeployFunction } from 'hardhat-deploy/dist/types'
import { deploy } from '../src/deploy-utils' import { deploy } from '../src/deploy-utils'
...@@ -7,14 +5,11 @@ import { deploy } from '../src/deploy-utils' ...@@ -7,14 +5,11 @@ import { deploy } from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
// We only want to deploy the dgf on devnet for now // We only want to deploy the dgf on devnet for now
if (hre.deployConfig.l1ChainID === 900) { if (hre.deployConfig.l1ChainID === 900) {
const finalOwner = hre.deployConfig.finalSystemOwner
const disputeGameFactory = await deploy({ const disputeGameFactory = await deploy({
hre, hre,
name: 'DisputeGameFactory', name: 'DisputeGameFactory',
args: [finalOwner], args: [],
}) })
const fetchedOwner = await disputeGameFactory.owner()
assert(fetchedOwner === finalOwner)
console.log('DisputeGameFactory deployed at ' + disputeGameFactory.address) console.log('DisputeGameFactory deployed at ' + disputeGameFactory.address)
} }
} }
......
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