Skip to content

Commit 3411d80

Browse files
committed
Better spacing
1 parent 94969a9 commit 3411d80

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pages/entropy/best-practices.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ it is important to keep the callback function as simple as possible
77
so that the gas usage is predictable and below the limits.
88
This will ensure consistent performance and avoid potential issues with the callback.
99

10-
For example, if you want to use entropy to generate a random number for each player in a round of game, you need to make sure that the callback function works for the maximum number of players that can be in each round.
10+
For example, if you want to use entropy to generate a random number for each player in a round of game,
11+
you need to make sure that the callback function works for the maximum number of players that can be in each round.
1112
Otherwise, the callbacks will work for some rounds with fewer players, but will fail for rounds with more players.
13+
1214
Multiple solutions are possible to address this problem. You can store the random number received from the callback and
13-
either ask users to submit more transactions after the callback to continue the flow or run a background crank service to submit the necessary transactions.
15+
either ask users to submit more transactions after the callback to continue the flow or run a background crank service
16+
to submit the necessary transactions.
1417

1518
You can see the gas limits for each chain in [this](./contract-addresses) page.
1619

0 commit comments

Comments
 (0)