From af0571a7dd2899e173e45b668259cd73a1eb4535 Mon Sep 17 00:00:00 2001 From: Xuz Date: Thu, 7 Dec 2023 21:39:28 +0800 Subject: [PATCH] fix: Deploy Contract Error: Network goerli doesn't exist basic/14-chainlink-price-feed: npx hardhat run scripts/01-PriceConsumerV3Deploy.js --network goerli --- basic/14-chainlink-price-feed/hardhat.config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/basic/14-chainlink-price-feed/hardhat.config.js b/basic/14-chainlink-price-feed/hardhat.config.js index 13de0d632..33ab58d18 100644 --- a/basic/14-chainlink-price-feed/hardhat.config.js +++ b/basic/14-chainlink-price-feed/hardhat.config.js @@ -39,10 +39,10 @@ module.exports = { // url: mainnetRpcUrl // } }, - // goerli: { - // url: 'https://goerli.infura.io/v3/' + process.env.INFURA_ID, //<---- YOUR INFURA ID! (or it won't work) - // accounts: [mnemonic()], - // }, + goerli: { + url: 'https://goerli.infura.io/v3/' + process.env.INFURA_ID, //<---- YOUR INFURA ID! (or it won't work) + accounts: [mnemonic()], + }, }, namedAccounts: { deployer: {