Skip to content

Allow setting block number for off-chain testing#1806

Merged
ascjones merged 2 commits intouse-ink:masterfrom
ltfschoen:ltfschoen-env-offchain-test-set-block-number
Jun 13, 2023
Merged

Allow setting block number for off-chain testing#1806
ascjones merged 2 commits intouse-ink:masterfrom
ltfschoen:ltfschoen-env-offchain-test-set-block-number

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

2 participants