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

Add hardhat.config options for local node like forks have #4406

Closed
RohanNero opened this issue Sep 20, 2023 · 1 comment
Closed

Add hardhat.config options for local node like forks have #4406

RohanNero opened this issue Sep 20, 2023 · 1 comment
Assignees

Comments

@RohanNero
Copy link

RohanNero commented Sep 20, 2023

Describe the feature

Pretty much a duplicate of 4405

I'd like to be able to set the blocknumber and timestamp inside of my hardhat.config file for the local hardhat network. You can achieve this easily on a forked network:

networks: {
    hardhat: {
      blockConfirmations: 1,
      forking: {
        url: process.env.FORKING_URL,
        blockNumber: 17372500,
      },
    },

But if I wanted to set the block number on my local network, it doesn't work or give the user any warning/error message:

 networks: {
    hardhat: {
      blockConfirmations: 1,
      blockNumber: 17372500,
    },
  },

For additional customization and specific use-cases such as this one, it would be helpful to set these values inside the config.

Search terms

hardhat node block number

@RohanNero
Copy link
Author

Closed for being duplicate

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

2 participants