Skip to content

Commit 5895f75

Browse files
fix links and events
1 parent dd90486 commit 5895f75

File tree

1 file changed

+2
-4
lines changed
  • pages/entropy/generate-random-numbers

1 file changed

+2
-4
lines changed

pages/entropy/generate-random-numbers/evm.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ To generate a random number, follow these steps.
6262

6363
### 1. Request a number from Entropy
6464

65-
# TODO: fix links and events
6665

6766
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.
6867
The `requestV2` method requires paying a fee in native gas tokens which is configured per-provider.
@@ -80,10 +79,10 @@ function requestRandomNumber() external payable {
8079
8180
```
8281

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

8584
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).
8786

8887
### 2. Implement the Entropy callback
8988

@@ -117,7 +116,6 @@ contract YourContract is IEntropyConsumer {
117116
// This method **must** be implemented on the same contract that requested the random number.
118117
// This method should **never** return an error -- if it returns an error, then the keeper will not be able to invoke the callback.
119118
// If you are having problems receiving the callback, the most likely cause is that the callback is erroring.
120-
// TODO: point to debugger
121119
// See the callback debugging guide here to identify the error https://docs.pyth.network/entropy/debug-callback-failures
122120
function entropyCallback(
123121
uint64 sequenceNumber,

0 commit comments

Comments
 (0)