Skip to content

docs - random number appears out of date #284

@duckfev3r

Description

@duckfev3r

[https://contracting.lamden.io/concepts/randoms/#randomseed](link to random docs)

Docs state below is necessary when using ContractingClient :

rc = client.get_contract('random_contract') rc.uses_random_method(environment={ 'block_height': 0, 'block_hash': 'any_string' })

However, when included in code, an error is thrown, removing it solves the issue, and random methods work as expected.
Behaviour observed in Jupyter Notebook.

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