fix: do not override web3 in embark

This commit is contained in:
Anthony Laibe 2018-12-12 15:09:04 +00:00
parent 1461e95c39
commit 94a8bada7e

View File

@ -4,7 +4,9 @@ const __embarkWeb3 = {};
__embarkWeb3.init = function (_config) {
this.web3 = new Web3();
global.web3 = this.web3;
if (!global.web3) {
global.web3 = this.web3;
}
};
__embarkWeb3.getAccounts = function () {