From 6fe3db42350e5d72e06b44ad99e0579a223ad724 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 18 Sep 2018 09:42:46 +0100 Subject: [PATCH] Fix typo --- lib/core/modules/coderunner/runCode.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core/modules/coderunner/runCode.js b/lib/core/modules/coderunner/runCode.js index 236bc00bf..2e6dab3d4 100644 --- a/lib/core/modules/coderunner/runCode.js +++ b/lib/core/modules/coderunner/runCode.js @@ -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};