Skip to content

Commit dee5fde

Browse files
committed
Add comment
1 parent fd02b4b commit dee5fde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deploy/0_deploy.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,16 @@ import { getLibDiamondConfigOrEmpty } from '../utils/tools';
4444

4545
let factoryDeployer: FactoryDeployer;
4646

47+
// TODO: refactor this file to differentiate hardhat deployment from
48+
// other chains deployment.
4749
export 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

0 commit comments

Comments
 (0)