Skip to content

Instantly share code, notes, and snippets.

@ngrinkevich
Last active October 8, 2018 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngrinkevich/9a33c704f6a6520de34824819fe0a4d5 to your computer and use it in GitHub Desktop.
Save ngrinkevich/9a33c704f6a6520de34824819fe0a4d5 to your computer and use it in GitHub Desktop.
async requestRelayEntry() {
let request = await this.state.randomBeacon.requestRelayEntry(
0, 0, callbackContract.address, "callback(uint256)", {from: this.state.yourAddress, gas: 150000}
);
let requestId = request.logs[0].args.requestID.toNumber();
this.setState({
loading: true,
requestId: requestId
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment