deployment

This commit is contained in:
Thrilok kumar 2024-04-02 22:28:21 +05:30
parent 8c122e3e54
commit 6eb3b9eb09
3 changed files with 25 additions and 2 deletions

File diff suppressed because one or more lines are too long

22
scripts/deployIGP16.js Normal file
View File

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

View File

@ -2,10 +2,10 @@ const hre = require("hardhat");
const { ethers } = hre;
async function main() {
const payload = await ethers.deployContract("PayloadIGP15", [])
const payload = await ethers.deployContract("PayloadIGP16", [])
await payload.waitForDeployment()
console.log("PayloadIGP15: ", payload.target)
console.log("PayloadIGP16: ", payload.target)
console.log()
}