File size: 680 Bytes
07a4a97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
async function main() {
  const [deployer] = await ethers.getSigners();
  console.log("Deploying with", deployer.address);

  // Example: if you need to deploy helper contracts for demo. If your contracts already exist skip.
  // const Token = await ethers.getContractFactory("MyToken");
  // const token = await Token.deploy("Demo", "DMD", 18, ethers.parseUnits("1000000", 18));
  // await token.waitForDeployment();
  // console.log("Token deployed to:", token.target);

  console.log("If you have contracts already, skip deploy script and fill addresses in .env");
}

main()
  .then(() => process.exit(0))
  .catch((err) => {
    console.error(err);
    process.exit(1);
  });