Merge pull request #859 from embark-framework/bugfix/runcode-type
Fix typo
This commit is contained in:
commit
d9c5369c20
|
@ -34,8 +34,7 @@ class RunCode {
|
||||||
let providerUrl;
|
let providerUrl;
|
||||||
if(provider instanceof Web3.providers.HttpProvider){
|
if(provider instanceof Web3.providers.HttpProvider){
|
||||||
providerUrl = provider.host;
|
providerUrl = provider.host;
|
||||||
}
|
} else if (provider instanceof Web3.providers.WebsocketProvider) {
|
||||||
else if(provider instanceof Web3.provider.WebsocketProvider){
|
|
||||||
providerUrl = provider.connection._url;
|
providerUrl = provider.connection._url;
|
||||||
}
|
}
|
||||||
return {defaultAccount: this.context.web3.eth.defaultAccount, providerUrl: providerUrl};
|
return {defaultAccount: this.context.web3.eth.defaultAccount, providerUrl: providerUrl};
|
||||||
|
|
Loading…
Reference in New Issue