This commit is contained in:
Anthony Laibe 2018-09-18 09:42:46 +01:00
parent 7ce92211f9
commit 6fe3db4235
1 changed files with 1 additions and 2 deletions

View File

@ -34,8 +34,7 @@ class RunCode {
let providerUrl;
if(provider instanceof Web3.providers.HttpProvider){
providerUrl = provider.host;
}
else if(provider instanceof Web3.provider.WebsocketProvider){
} else if (provider instanceof Web3.providers.WebsocketProvider) {
providerUrl = provider.connection._url;
}
return {defaultAccount: this.context.web3.eth.defaultAccount, providerUrl: providerUrl};