You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/entropy/generate-random-numbers/evm.mdx
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,6 @@ To generate a random number, follow these steps.
62
62
63
63
### 1. Request a number from Entropy
64
64
65
-
# TODO: fix links and events
66
65
67
66
Invoke the [`requestV2`](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/entropy_sdk/solidity/IEntropy.sol#L83) method of the `IEntropyV2` contract.
68
67
The `requestV2` method requires paying a fee in native gas tokens which is configured per-provider.
@@ -80,10 +79,10 @@ function requestRandomNumber() external payable {
80
79
81
80
```
82
81
83
-
This method returns a sequence number and emits a [`RequestedWithCallback`](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/entropy_sdk/solidity/EntropyEvents.sol#L10) event. You can store this sequence number to identify the request in next step.
82
+
This method returns a sequence number and emits a [`Requested`](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/entropy_sdk/solidity/EntropyEventsV2.sol#L30) event. You can store this sequence number to identify the request in next step.
84
83
85
84
Note that there are several variants of `requestV2` that allow the caller to configure the provider fulfilling the request and the gas limit for the callback.
86
-
Please see the method documentation in the IEntropyV2 interface. TODO: link
85
+
Please see the method documentation in the [IEntropyV2 interface](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/entropy_sdk/solidity/IEntropyV2.sol).
87
86
88
87
### 2. Implement the Entropy callback
89
88
@@ -117,7 +116,6 @@ contract YourContract is IEntropyConsumer {
117
116
// This method **must** be implemented on the same contract that requested the random number.
118
117
// This method should **never** return an error -- if it returns an error, then the keeper will not be able to invoke the callback.
119
118
// If you are having problems receiving the callback, the most likely cause is that the callback is erroring.
120
-
// TODO: point to debugger
121
119
// See the callback debugging guide here to identify the error https://docs.pyth.network/entropy/debug-callback-failures
0 commit comments