From c86ec0f9db9abc1e2998f039fdab3877e099cb71 Mon Sep 17 00:00:00 2001 From: Xuz Date: Wed, 6 Dec 2023 16:58:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E5=89=8D=E7=AB=AF=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=90=88=E7=BA=A6=E9=83=A8=E7=BD=B2goerli?= =?UTF-8?q?=E7=BD=91=E7=BB=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- basic/09-hardhat-react/frontend/src/components/Dapp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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