Skip to content

Commit ab93c80

Browse files
Added clarity on chain id and fixed cast send argument (#516)
The chain ID used on the api is not the EVM chain id so it might be a bit misleading, I added description. The `cast send` call had a bad argument, modified that.
1 parent 27c8fce commit ab93c80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/entropy/debug-callback-failures.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Retrieve the `/v1/chains/$CHAIN_ID/revelations/$SEQUENCE_NUMBER` endpoint from t
5656
```bash copy
5757
curl https://fortuna.dourolabs.app/v1/chains/$CHAIN_ID/revelations/$SEQUENCE_NUMBER
5858
```
59+
N.B. The chain ID is the string name of the chain and not the EVM chain ID. The chain ids are available [here](https://fortuna.dourolabs.app/docs/#/crate%3A%3Aapi/chain_ids)
5960

6061
This endpoint will return the provider's revelation as a hexadecimal value, such as:
6162

@@ -77,7 +78,7 @@ export PROVIDER_REVELATION=0x5d4bfa3abeaf15fe8b7771c74c0e3e210096015632831460870
7778
Finally, submit the transaction to invoke `revealWithCallback`:
7879

7980
```bash copy
80-
cast send $ENTROPY_ADDRESS 'revealWithCallback(address, uint64, bytes32, bytes32)' $ENTROPY_ADDRESS $SEQUENCE_NUMBER $USER_RANDOM_NUMBER $PROVIDER_REVELATION
81+
cast send $ENTROPY_ADDRESS 'revealWithCallback(address, uint64, bytes32, bytes32)' $PROVIDER_ADDRESS $SEQUENCE_NUMBER $USER_RANDOM_NUMBER $PROVIDER_REVELATION
8182
```
8283

8384
You may also need to provide the `-r` with an RPC for your chain, plus an additional argument (such as `--private-key`) to specify the wallet to use to sign the transaction.

0 commit comments

Comments
 (0)