Initial commit
This commit is contained in:
17
backend/scripts/deploy.js
Normal file
17
backend/scripts/deploy.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
});
|
||||
Reference in New Issue
Block a user