From 715f019513743e63ab2f594c5a7a039d66b9f615 Mon Sep 17 00:00:00 2001 From: cgewecke Date: Fri, 13 Sep 2019 13:34:03 -0700 Subject: [PATCH] Add host field to network --- dist/truffle.plugin.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dist/truffle.plugin.js b/dist/truffle.plugin.js index 7c862cf..0eec27c 100644 --- a/dist/truffle.plugin.js +++ b/dist/truffle.plugin.js @@ -76,11 +76,9 @@ async function plugin(truffleConfig){ //const web3 = new Web3(provider); await app.provider(truffle.ganache); const web3 = new Web3('http://localhost:8777'); - console.log('post web3 in plugin'); const accounts = await web3.eth.getAccounts(); const nodeInfo = await web3.eth.getNodeInfo(); const ganacheVersion = nodeInfo.split('/')[1]; - console.log('post initial web3 calls') app.ui.report('truffle-version', [truffle.version]); app.ui.report('ganache-version', [ganacheVersion]); @@ -112,8 +110,9 @@ async function plugin(truffleConfig){ const networkName = 'soliditycoverage'; truffleConfig.network = networkName; - // Truffle alternately complains that fields are and - // are not manually set + // Truffle alternately complains that fields *are* + // and *are not* manually set depending on the execution + // context (npm installed vs. our tests': await plugin()) try { truffleConfig.network_id = "*"; truffleConfig.port = 8777; @@ -125,7 +124,7 @@ async function plugin(truffleConfig){ truffleConfig.networks[networkName] = { network_id: "*", - provider: TruffleProvider.create(truffleConfig), + host: "127.0.0.1", port: 8777, gas: app.gasLimit, gasPrice: app.gasPrice,