SHARE
TWEET

Untitled

a guest Jun 25th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top