Silvia_Prada_Aprilia/vote-block-skripsi/election-api/scripts/deploy.js
2024-12-31 11:46:10 +07:00

18 lines
366 B
JavaScript

const hre = require("hardhat");
async function main() {
const Election = await hre.ethers.getContractFactory("Election");
const election_ = await Election.deploy();
await election_.deployed();
console.log(
`Contract Address: ${election_.address}`
);
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});