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

Documentation For Usage Unclear #4

Open
Joseph-Cardwell opened this issue Aug 13, 2021 · 0 comments
Open

Documentation For Usage Unclear #4

Joseph-Cardwell opened this issue Aug 13, 2021 · 0 comments

Comments

@Joseph-Cardwell
Copy link

Joseph-Cardwell commented Aug 13, 2021

I'm relatively new to this code set. Once I get to the Configuration and Usage section of the readme, the instructions become...cryptic.

when it says

module.exports = {
  localNetworksConfig: '~/.hardhat/networks.ts'
}

does this mean something like the following in my hardhat.config.js file?:

module.exports = {
  solidity: "0.7.3"
  localNetworksConfig: '~/.hardhat/networks.ts'
}

Where does this go?

export interface LocalNetworksConfig {
  networks?: NetworksConfig
  defaultConfig?: NetworkConfig
}

Where does this go?

{
  "networks": {
    "rinkeby": {
      "gasMultiplier": 2,
      "accounts": ["0x12..56","0xab..cd"],
      "url": "https://rinkeby.infura.io/v3/<API_KEY>"
    },
    "mainnet": {
      "accounts": ["0x12..56","0xab..cd"],
      "url": "https://mainnet.infura.io/v3/<API_KEY>"
    }
  },
  "defaultConfig": {
    "gasPrice": "auto"
  }
}

Sorry for being a newb and asking the first stupid question. Maybe adding specifics like these to the readme will help script kiddies like me in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant