File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,16 @@ import { getLibDiamondConfigOrEmpty } from '../utils/tools';
4444
4545let factoryDeployer : FactoryDeployer ;
4646
47+ // TODO: refactor this file to differentiate hardhat deployment from
48+ // other chains deployment.
4749export default async function deploy ( ) {
4850 console . log ( 'Deploying PoCo..' ) ;
4951 const network = await ethers . provider . getNetwork ( ) ;
5052 const chainId = network . chainId ;
5153 const [ deployer ] = await ethers . getSigners ( ) ;
5254 const deploymentOptions = config . getChainConfigOrDefault ( chainId ) ;
55+ // TODO: remove the fallback on deployer address to avoid deployement
56+ // misconfiguration.
5357 const ownerAddress = deploymentOptions . owner || deployer . address ;
5458 factoryDeployer = new FactoryDeployer ( deployer , chainId ) ;
5559 // Deploy RLC
You can’t perform that action at this time.
0 commit comments