fix account enable not working on status
This commit is contained in:
parent
37c3b73e94
commit
62f7a88faf
|
@ -93,8 +93,8 @@ class App extends React.Component {
|
|||
|
||||
enableEthereum = async () => {
|
||||
try {
|
||||
await window.ethereum.enable()
|
||||
const account = await web3.eth.getCoinbase()
|
||||
const accounts = await EmbarkJS.enableEthereum();
|
||||
const account = accounts[0]
|
||||
this.setState({ account })
|
||||
this.web3Init()
|
||||
return account
|
||||
|
|
Loading…
Reference in New Issue