From dba5f771f2e835d416b74414eaf65997582674e4 Mon Sep 17 00:00:00 2001 From: emizzle Date: Wed, 20 Nov 2019 14:59:43 +1100 Subject: [PATCH] fix(@embark/simulator): fix port used in simulator When using websockets, the simulator was starting on port `8545` instead of `8546`, so the blockchain check was failing. Update the simulator port to be websockets port from the config when using websockets. --- packages/embark/src/cmd/simulator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/embark/src/cmd/simulator.js b/packages/embark/src/cmd/simulator.js index 0d4a2f35e..a3d3d685e 100644 --- a/packages/embark/src/cmd/simulator.js +++ b/packages/embark/src/cmd/simulator.js @@ -14,7 +14,7 @@ class Simulator { const cmds = []; const host = (dockerHostSwap(options.host || this.blockchainConfig.rpcHost) || defaultHost); - const configPort = this.blockchainConfig.wsRPC ? this.blockchainConfig.rpcPort : this.blockchainConfig.wsPort; + const configPort = this.blockchainConfig.wsRPC ? this.blockchainConfig.wsPort : this.blockchainConfig.rpcPort; let port = parseInt((options.port || configPort || 8545), 10); cmds.push("-p " + port);