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

Ensure chain time is correct when using chain.mine with ganache 7 #1438

Merged
merged 2 commits into from
Feb 14, 2022

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Fix an issue with chain.mine where setting a new timestamp wasn't remembered in subsequent blocks.

This seems to be changed behavior from ganache 6 to 7 but I can't find any documentation on it, so not sure if it's intentional.

How I did it

When calling evm_mine with a timestamp, also call evm_setTime.

@iamdefinitelyahuman iamdefinitelyahuman merged commit c72f63c into master Feb 14, 2022
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix/chain-mine-timestamp branch February 14, 2022 22:38
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

Successfully merging this pull request may close these issues.

None yet

1 participant