How do I get the msg.sender of the user who called randomNumber() in the __callback?
pragma solidity ^0.5.11;
import "github.com/provable-things/ethereum-api/provableAPI_0.4.25.sol";
contract ExampleContract is usingProvable {
function __callback(bytes32 myid, string result) {
if (msg.sender != provable_cbAddress()) revert();
// how do i get the address of the user who called "randomNumber"?
}
function randomNumber() public {
provable_query("WolframAlpha", "random number between 0 and 100");
}
}
documentation: https://docs.provable.xyz/#ethereum-quick-start