Merge pull request #859 from embark-framework/bugfix/runcode-type

Fix typo
This commit is contained in:
Iuri Matias 2018-09-18 12:42:59 -04:00 committed by GitHub
commit d9c5369c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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};