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

feat: hardhat_reset #302

Merged
merged 17 commits into from
Jun 27, 2024
Merged

feat: hardhat_reset #302

merged 17 commits into from
Jun 27, 2024

Conversation

vbar
Copy link
Contributor

@vbar vbar commented Jun 25, 2024

What πŸ’»

Added hardhat_reset API.

Why βœ‹

Requested in #275 .

Evidence πŸ“·

Added unit test, which passes:

test node::in_memory_ext::tests::test_reset ... ok

Notes πŸ“

The support is partial: reverting to past local blocks is impractical to implement within the current test node architecture, and can be replaced by using snapshots.

@vbar vbar requested a review from a team as a code owner June 25, 2024 13:40
src/node/in_memory.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@MexicanAce MexicanAce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@MexicanAce MexicanAce merged commit 1afa81a into matter-labs:main Jun 27, 2024
10 checks passed
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.

2 participants