Unverified Commit 7d6386c3 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #2391 from bmcd87/patch-1

Fixes bug in network.getEndpoint()
parents ad933abe 25c93094
......@@ -55,7 +55,7 @@ export class NetworkModule extends Plugin {
if (provider !== 'web3') {
throw new Error('no endpoint: current provider is either injected or vm')
}
return provider.web3().currentProvider.host
return executionContext.web3().currentProvider.host
}
/** Add a custom network to the list of available networks */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment