Skip to content

Allow setting block number for off-chain testing #1805

@ltfschoen

Description

@ltfschoen

Escalated from this StackExchange question: https://substrate.stackexchange.com/questions/8867/how-to-stub-ink-contract-environment-to-produce-fake-values-for-use-in-tests.

ToDo

  • Add a method Engine::set_block_number(value: BlockNumber).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions