comment web3 test override to avoid confusion in the test_app

This commit is contained in:
Iuri Matias 2018-05-10 19:57:26 -04:00
parent ab5dc059e7
commit 9e1778f62c
1 changed files with 4 additions and 3 deletions

View File

@ -28,9 +28,10 @@ module.exports = function (embark) {
callback({contractCode: options.contract.code}); callback({contractCode: options.contract.code});
}); });
embark.registerClientWeb3Provider(function(options) { // NOTE: uncommenting this will make dappConnection stop working
return "web3 = new Web3(new Web3.providers.HttpProvider('http://" + options.rpcHost + ":" + options.rpcPort + "'));"; //embark.registerClientWeb3Provider(function(options) {
}); // return "web3 = new Web3(new Web3.providers.HttpProvider('http://" + options.rpcHost + ":" + options.rpcPort + "'));";
//});
embark.registerConsoleCommand((cmd) => { embark.registerConsoleCommand((cmd) => {
if (cmd === "hello") { if (cmd === "hello") {