diff --git a/basic/09-hardhat-react/frontend/src/components/Dapp.js b/basic/09-hardhat-react/frontend/src/components/Dapp.js index 9c2e0887c..731e2b270 100644 --- a/basic/09-hardhat-react/frontend/src/components/Dapp.js +++ b/basic/09-hardhat-react/frontend/src/components/Dapp.js @@ -23,7 +23,7 @@ import { NoTokensMessage } from './NoTokensMessage' // This is the Hardhat Network id, you might change it in the hardhat.config.js // Here's a list of network ids https://docs.metamask.io/guide/ethereum-provider.html#properties // to use when deploying to other networks. -const HARDHAT_NETWORK_ID = '42' +const HARDHAT_NETWORK_ID = '5' // This is an error code that indicates that the user canceled a transaction const ERROR_CODE_TX_REJECTED_BY_USER = 4001 @@ -375,7 +375,7 @@ export class Dapp extends React.Component { } this.setState({ - networkError: 'Please connect Metamask to kovan', + networkError: 'Please connect Metamask to goerli', }) return false 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: {