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

Mocking block number #589

Open
jemgold opened this issue Nov 4, 2021 · 2 comments
Open

Mocking block number #589

jemgold opened this issue Nov 4, 2021 · 2 comments
Labels
waffle-mock-contract Anything related to the mocking package

Comments

@jemgold
Copy link

jemgold commented Nov 4, 2021

Hey! Wondering if there's any way to mock the block number? I can't immediately figure it out, or if Waffle is the right place to do it. I'm using waffle with hardhat & hardhat-ethers

@mister36
Copy link

mister36 commented Jul 4, 2022

@jemgold did you ever find a solution for this?

@mister36
Copy link

mister36 commented Jul 4, 2022

Found one here:
await provider.send('evm_mine', []);

@rzadp rzadp added the waffle-mock-contract Anything related to the mocking package label Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waffle-mock-contract Anything related to the mocking package
Projects
None yet
Development

No branches or pull requests

3 participants