Skip to content

Commit

Permalink
fix: 前端界面同步合约部署goerli网络
Browse files Browse the repository at this point in the history
  • Loading branch information
since2006 committed Dec 6, 2023
1 parent 4c0ec95 commit c86ec0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basic/09-hardhat-react/frontend/src/components/Dapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c86ec0f

Please sign in to comment.