Commit d07c16ad authored by Andreas Bigger's avatar Andreas Bigger Committed by Mark Tyneway

Remove final owner from dgf impl initialization.

parent a31a1bc1
<<<<<<< HEAD
<<<<<<< HEAD
import { DeployFunction } from 'hardhat-deploy/dist/types'
import { deploy } from '../src/deploy-utils'
......@@ -22,6 +23,11 @@ export default deployFn
=======
import assert from 'assert'
||||||| parent of 4c1b5e2ac (Remove final owner from dgf impl initialization.)
import assert from 'assert'
=======
>>>>>>> 4c1b5e2ac (Remove final owner from dgf impl initialization.)
import { DeployFunction } from 'hardhat-deploy/dist/types'
import { deploy } from '../src/deploy-utils'
......@@ -29,14 +35,11 @@ import { deploy } from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => {
// We only want to deploy the dgf on devnet for now
if (hre.deployConfig.l1ChainID === 900) {
const finalOwner = hre.deployConfig.finalSystemOwner
const disputeGameFactory = await deploy({
hre,
name: 'DisputeGameFactory',
args: [finalOwner],
args: [],
})
const fetchedOwner = await disputeGameFactory.owner()
assert(fetchedOwner === finalOwner)
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