contracting icon indicating copy to clipboard operation
contracting copied to clipboard

docs - random number appears out of date

Open duckfev3r opened this issue 5 years ago • 0 comments

[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.

duckfev3r avatar Sep 21 '20 14:09 duckfev3r