๐งช Deploy Using Hardhat
npm install --save-dev hardhatnpx hardhat initmodule.exports = {
solidity: "0.8.20",
networks: {
yourChain: {
url: "https://rpc1mainnet.qie.digital/",
accounts: ["YOUR_PRIVATE_KEY"]
}
}
};
const hre = require("hardhat");
async function main() {
const Contract = await hre.ethers.getContractFactory("MyContract");
const contract = await Contract.deploy();
await contract.deployed();
console.log("Deployed to:", contract.address);
}
main();
Last updated