[Feature Request] Add methods for manipulating block.timestamp and block.number in local test node #77
Closed
smusialpc
started this conversation in
Feature requests
Replies: 7 comments 1 reply
-
Noted! This is one of the features we're working on for the in-memory node which we will integrate with Hardhat to run tests locally. We'll announce it once ready |
Beta Was this translation helpful? Give feedback.
1 reply
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
-
This is now supported in era-test-node, please refer to the this tests file that illustrates usage well. Closing this request as delivered. |
Beta Was this translation helpful? Give feedback.
0 replies
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Network
zkSync Era
Provide a brief description of the feature you would like to see implemented.
It would be useful to have methods that allow setting block timestamp or number of next mined block in test in-memory node. Such functionality would be useful in testing time-dependent smart contracts.
Functionality already exists in hardhat:
Who does this feature request benefit the most (users, developers, protocol, etc.)?
Developers
Additional Details
No response
Beta Was this translation helpful? Give feedback.
All reactions