mirror of https://github.com/embarklabs/embark.git
Fix typo
This commit is contained in:
parent
7ce92211f9
commit
6fe3db4235
|
@ -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