mirror of https://github.com/embarklabs/embark.git
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;
|
||||
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};
|
||||
|
|
Loading…
Reference in New Issue