Entropy Callback function integration on Story

Hey,

We’re testing Pyth Entropy on Story chain and wanted to double-check how to receive the callback.

The docs mention to have a “entropyCallback” function https://docs.pyth.network/entropy/generate-random-numbers/evm

But we see that the Entropy contract tried to call “revealWithCallback(address arg0, uint64 arg1, bytes32 arg2, bytes32 arg3)” on our contract Story transaction 0x11a4e7b8737c8fb507e606b15ed1e5c2219e6d8b2f3687f3bdf9a2c4c6d5f806 | Blockscout

Should we implement revealWithCallback? And if so, what parameter should we use to get the random value?

Hi,

You should implement entropyCallback only, and not revealWithCallback.

revealWithCallback method will call entropyCallback method in your contract.

Check the inline links for the contract logic.

1 Like