-
Notifications
You must be signed in to change notification settings - Fork 36
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
Time manipulation functions #114
Conversation
- increaseTime() - setTime()
}, "Request failed. Make sure your network has the /increase_time endpoint"); | ||
} | ||
|
||
public async setTime(seconds: number) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it would make sense to provide an option to set time in Date
as well? Or does it make more sense to expect users to do the date manipulation anyway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add tests for this as well?
Usage related changes
increaseTime()
andsetTime()
Development related changes
setTime()
wil update the subsequent block timestamp keeping the offsetChecklist:
plugin
branch ofstarknet-hardhat-example
.