Skip to content

Commit

Permalink
fix: deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Jan 12, 2024
1 parent 9aa318e commit b534881
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ const { OWNER_ADDRESS } = process.env;
async function main() {
// deploy contract
const Contract = await ethers.getContractFactory("MyToken");
const contract = await Contract.deploy(OWNER_ADDRESS!);
const contract = await Contract.deploy(
"MyToken",
"MTK",
OWNER_ADDRESS!,
1000000,
2
);
await contract.waitForDeployment();
const address = await contract.getAddress();
console.log(`Contract deployed to ${address}`);
Expand Down

0 comments on commit b534881

Please sign in to comment.