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

Allow setting block number for off-chain testing #1806

Merged

Conversation

ltfschoen
Copy link
Contributor

@ltfschoen ltfschoen commented Jun 13, 2023

Adding a Engine::set_block_number function to solve issue #1805

Added a test accordingly.

Similar to this PR that added Engine::set_block_timestamp #1721

Verified that it works in my project https://github.com/ltfschoen/InkTemplate/pull/16/files#diff-ba24f44bc113244a08fc1781375fa5aab36b7587d656c925ee251ff42ac4de3fR362

@ltfschoen ltfschoen marked this pull request as ready for review June 13, 2023 10:56
Copy link
Collaborator

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

LGTM

@ascjones ascjones merged commit 2eba99e into use-ink:master Jun 13, 2023
@SkymanOne SkymanOne mentioned this pull request Mar 4, 2024
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