Skip to content

Commit

Permalink
Make it more clear what resetBet does and how to view the result
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliserag committed Sep 19, 2024
1 parent c88b38b commit 715faf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/evm/guides/vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ You need to generate a **commitment hash** from a nonce (random number) and your

2. The contract will fetch a secure random number from **Cadence Arch** and determine whether you won or lost based on the outcome (0 for heads, 1 for tails).

3. Input the testnet address you are using to interact with the contract into the bets field to see if the result matched the bet.

_Note: You need to run **resetBet** between commits in this example in order to commit a new bet._

## Read More

For further details on Flow’s randomness and secure development practices, check out the [Flow Randomness Documentation](https://developers.flow.com/build/advanced-concepts/randomness). You can also view an exammple in both Solidity and Cadence of a [cointoss implentation](https://github.com/onflow/random-coin-toss/tree/add-solidity-impl) using the VRF.
Expand Down

0 comments on commit 715faf2

Please sign in to comment.