import { ethers } from "hardhat";
async function main() {
const [deployer] = await ethers.getSigners();
console.log("Deploying contract with account:", deployer.address);
console.log("Account balance:", (await deployer.provider.getBalance(deployer.address)).toString());
const HighestCoin = await ethers.getContractFactory("HighestCoin");
const contract = await HighestCoin.deploy();
await contract.waitForDeployment();
console.log("HighestCoin deployed to:", await contract.getAddress());
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});



ساحة النقاش