Skip to content

Commit

Permalink
Merge pull request #1010 from since2006/main
Browse files Browse the repository at this point in the history
fix:  前端界面同步合约部署goerli网络
  • Loading branch information
yingjingyang authored Dec 26, 2023
2 parents 1c9ce28 + af0571a commit 69fb3d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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
8 changes: 4 additions & 4 deletions basic/14-chainlink-price-feed/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 69fb3d4

Please sign in to comment.