Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1.  
  2. async loadBlockchainData() {
  3. this.setState({accounts: await web3.eth.getAccounts()});
  4. const x = await instance.methods.getBasicInfo(this.state.accounts[0]).call();
  5. this.setState({
  6. info: [...x]
  7. });
  8.  
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement