import { viem } from "hardhat";

 

async function main() {

  const publicClient = await viem.getPublicClient();

  const walletClient = await viem.getWalletClients();

  const deployer = walletClient[0];

 

  console.log("Deploying with account:", deployer.account.address);

 

  const contract = await viem.deployContract(

    "HighestCoin",

    [],

    {

      client: {

        wallet: deployer,

        public: publicClient,

      },

    }

  );

 

  console.log("HighestCoin deployed to:", contract.address);

}

 

main().catch((error) => {

  console.error(error);

  process.exitCode = 1;

});


masry500

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

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

ساحة النقاش

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

122,859