From 51f879367189929611b1de6073f169bd57779260 Mon Sep 17 00:00:00 2001 From: sergeypanin1994 Date: Thu, 23 Jan 2025 02:07:26 +0300 Subject: [PATCH 1/2] fix: update Twitter URL to x.com format Replaced the outdated Twitter URL (https://twitter.com) with the updated x.com format (https://x.com/yongbuddha108) to align with the platform's rebranding. --- frontend/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/README.md b/frontend/README.md index dd65f62..43ce72f 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -33,6 +33,6 @@ this project, and what can be reused. If you need help with this project or with Hardhat in general, please read [this guide](https://hardhat.org/hardhat-runner/docs/guides/getting-help) to learn where and how to get it. -[Follow us on Twitter](https://twitter.com/HardhatHQ) to get the latest news about Hardhat, and don't forget to star [our GitHub repository](https://github.com/NomicFoundation/hardhat)! +[Follow us on Twitter](https://x.com/HardhatHQ) to get the latest news about Hardhat, and don't forget to star [our GitHub repository](https://github.com/NomicFoundation/hardhat)! **Happy _building_!** From 0a9f122a4501b2d37cafaa80dec03bf4cf09021d Mon Sep 17 00:00:00 2001 From: sergeypanin1994 Date: Thu, 23 Jan 2025 02:11:47 +0300 Subject: [PATCH 2/2] fix: improve comments, fix typos, and enhance Hardhat configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fixed grammatical errors in comments for better clarity. - Corrected typo: "harhdat-verify" → "hardhat-verify". - Removed unnecessary template strings from `etherscan.apiKey` to simplify configuration. - Added `hardhat` network to support local ephemeral testing. - Improved comments to provide better explanations of configurations. - Clarified network parameters and deployment settings for better readability. --- hardhat.config.ts | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/hardhat.config.ts b/hardhat.config.ts index 7b4a94d..4d1ff32 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -15,39 +15,40 @@ import "fhenix-hardhat-network"; import "./tasks"; -// If not set, it uses ours Alchemy's default API key. +// If not set, it uses our default Alchemy API key. // You can get your own at https://dashboard.alchemyapi.io const providerApiKey = process.env.ALCHEMY_API_KEY || "oKxs-03sij-U_N0iOlrSsZFr29-IqbuF"; -// If not set, it uses the hardhat account 0 private key. + +// If not set, it uses the Hardhat default account (index 0). const deployerPrivateKey = process.env.DEPLOYER_PRIVATE_KEY ?? "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; -// If not set, it uses ours Etherscan default API key. + +// If not set, it uses our default Etherscan API key. const etherscanApiKey = process.env.ETHERSCAN_API_KEY || "DNXJA8RX2Q3VZ4URQIWP7Z68CJXQZSC6AW"; -const config= { +const config: HardhatUserConfig = { solidity: { version: "0.8.24", settings: { optimizer: { enabled: true, - // https://docs.soliditylang.org/en/latest/using-the-compiler.html#optimizer-options - runs: 200, + runs: 200, // Recommended Solidity optimizer settings }, }, }, + // The default network for deployments and interactions defaultNetwork: "localfhenix", namedAccounts: { deployer: { - // By default, it will take the first Hardhat account as the deployer - default: 0, + default: 0, // Uses the first Hardhat account as deployer }, }, networks: { - // View the networks that are pre-configured. - // If the network you are looking for is not here you can add new network settings + // These are the pre-configured networks. + // If the one you need is missing, you can add it below. helium: { url: "https://api.testnet.fhenix.zone:7747", chainId: 42069, @@ -60,16 +61,19 @@ const config= { }, localhost: { chainId: 31337, - } + }, + hardhat: { + chainId: 31337, + }, }, - // configuration for harhdat-verify plugin + // Configuration for hardhat-verify plugin etherscan: { - apiKey: `${etherscanApiKey}`, + apiKey: etherscanApiKey, }, - // configuration for etherscan-verify from hardhat-deploy plugin + // Configuration for etherscan-verify from hardhat-deploy plugin verify: { etherscan: { - apiKey: `${etherscanApiKey}`, + apiKey: etherscanApiKey, }, }, sourcify: {