This commit is contained in:
Kamen Stoykov 2019-06-04 12:31:45 +03:00
parent 191bea776e
commit 4c05bb23b8
2 changed files with 6 additions and 9 deletions

View File

@ -33,7 +33,8 @@
"reselect": "^4.0.0",
"web3-utils": "^1.0.0-beta.35",
"webpack": "4.28.3",
"idb": "4.0.3"
"idb": "4.0.3",
"web3":"1.0.0-beta.34"
},
"scripts": {
"start": "react-scripts start",

View File

@ -31,15 +31,11 @@ const getInstance = async () => {
}
}
if (web3.currentProvider) {
returnInstance()
} else {
EmbarkJS.onReady(err => {
if (err) reject(err)
EmbarkJS.onReady(err => {
if (err) reject(err)
returnInstance()
})
}
returnInstance()
})
})
}