Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 前端界面同步合约部署goerli网络 #1010

Merged
merged 2 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading