const { ethers } = require("hardhat");
async function main() {
try {
// Deploy Wall contract
const WallFactory = await ethers.getContractFactory("Wall");
const wallContract = await WallFactory.deploy();
await wallContract.waitForDeployment();
console.log("Wall deployed to:", wallContract.target);
// Deploy Nftcert contract
const NftcertFactory = await ethers.getContractFactory("Nftcert");
const NftcertContract = await NftcertFactory.deploy("NFTCertificate", "NFTC");
await NftcertContract.waitForDeployment();
console.log("Nftcert deployed to:", NftcertContract.target);
} catch (error) {
console.error("Deployment failed:", error);
}
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});