Skip to content

Instantly share code, notes, and snippets.

@ngrinkevich
Last active October 8, 2018 12:24
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/c1b715d36fccd971d615b7ed43532f44 to your computer and use it in GitHub Desktop.
Save ngrinkevich/c1b715d36fccd971d615b7ed43532f44 to your computer and use it in GitHub Desktop.
async requestRelayEntry() {
let request = await this.state.randomBeacon.requestRelayEntry(0, 0, 0, "", {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