17 lines
437 B
JavaScript
17 lines
437 B
JavaScript
async function main() {
|
|
const [deployer] = await ethers.getSigners();
|
|
|
|
console.log('Deploying contracts with the account:', deployer.address);
|
|
|
|
const MyContract = await ethers.getContractFactory('MyContract');
|
|
const contract = await MyContract.deploy();
|
|
|
|
console.log('Contract deployed to:', contract.address);
|
|
}
|
|
|
|
main()
|
|
.then(() => process.exit(0))
|
|
.catch((error) => {
|
|
console.error(error);
|
|
process.exit(1);
|
|
});
|