You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
674 B
25 lines
674 B
2 years ago
|
const main = async () => {
|
||
|
const [deployer] = await hre.ethers.getSigners();
|
||
|
const accountBalance = await deployer.getBalance();
|
||
|
|
||
|
console.log("Deploying contracts with account: ", deployer.address);
|
||
|
console.log("Account balance: ", accountBalance.toString());
|
||
|
|
||
|
const contractFactory = await hre.ethers.getContractFactory("WKLC");
|
||
|
const contract = await contractFactory.deploy();
|
||
|
await contract.deployed();
|
||
|
|
||
|
console.log("WKLC address: ", contract.address);
|
||
|
};
|
||
|
|
||
|
const runMain = async () => {
|
||
|
try {
|
||
|
await main();
|
||
|
process.exit(0);
|
||
|
} catch (error) {
|
||
|
console.log(error);
|
||
|
process.exit(1);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
runMain();
|