Last active
January 14, 2019 12:12
-
-
Save ylv-io/332eb9641b4074860b437b8ac35ba3fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const getAccount = () => { | |
| // check if web3 present | |
| if (web3js) { | |
| // return default account | |
| return web3js.eth.accounts[0]; | |
| } | |
| return undefined; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment