import { ethers } from "hardhat";

 

async function main() {

  // جلب العقد

  const HighestCoin = await ethers.getContractFactory("HighestCoin");

 

  // نشر العقد مباشرة من حساب MetaMask المرتبط بالمفتاح في hardhat.config.ts

  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;

});


masry500

طابت أوقاتكم وبالله التوفيق

  • Currently 0/5 Stars.
  • 1 2 3 4 5
0 تصويتات / 5 مشاهدة
نشرت فى 14 يناير 2026 بواسطة masry500

ساحة النقاش

عدد زيارات الموقع

122,859