MuzammalHussain's picture
Create scripts/deploy.js
07a4a97 verified
raw
history blame contribute delete
680 Bytes
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);
});