File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Limit gas usage on the callback
4
4
5
- Since the entropy providers limit the gas usage on the callbacks,
6
- it is important to keep the callback function as simple as possible
7
- so that the gas usage is predictable and below the limits.
8
- This will ensure consistent performance and avoid potential issues with the callback.
5
+ Keeping the callback function simple is crucial because the entropy providers limit gas usage.
6
+ This ensures gas usage is predictable and consistent, avoiding potential issues with the callback.
9
7
10
8
For example, if you want to use entropy to generate a random number for each player in a round of game,
11
9
you need to make sure that the callback function works for the maximum number of players that can be in each round.
@@ -15,7 +13,7 @@ Multiple solutions are possible to address this problem. You can store the rando
15
13
either ask users to submit more transactions after the callback to continue the flow or run a background crank service
16
14
to submit the necessary transactions.
17
15
18
- You can see the gas limits for each chain in [ this ] ( ./contract-addresses ) page.
16
+ The gas limit for each chain is listed on the [ contract addresses ] ( ./contract-addresses ) page.
19
17
20
18
## Generating random values within a specific range
21
19
You can’t perform that action at this time.
0 commit comments