deployment script

This commit is contained in:
Thrilok kumar 2024-03-19 16:12:01 -04:00
parent 7f419ccab1
commit 6d955c49a1
3 changed files with 40 additions and 0 deletions

File diff suppressed because one or more lines are too long

22
scripts/deployIGP13.js Normal file
View File

@ -0,0 +1,22 @@
const hre = require("hardhat");
const { ethers } = hre;
async function main() {
const PayloadIGP13 = await ethers.getContractFactory("PayloadIGP13")
const payloadIGP13 = await PayloadIGP13.deploy()
await payloadIGP13.deployed()
console.log("PayloadIGP13: ", payloadIGP13.address)
await hre.run("verify:verify", {
address: payloadIGP13.address,
constructorArguments: []
})
}
main()
.then(() => process.exit(0))
.catch(error => {
console.error(error);
process.exit(1);
});

View File

@ -0,0 +1,17 @@
const hre = require("hardhat");
const { ethers } = hre;
async function main() {
const payload = await ethers.deployContract("PayloadIGP13", [])
await payload.waitForDeployment()
console.log("PayloadIGP13: ", payload.target)
console.log()
}
main()
.then(() => process.exit(0))
.catch(error => {
console.error(error);
process.exit(1);
});