From e5c498b59d42526389167f1e9a6af3407a81bfad Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 7 Aug 2018 15:04:58 -0400 Subject: [PATCH] hotfix network id comparison string vs number --- lib/modules/blockchain_connector/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/blockchain_connector/index.js b/lib/modules/blockchain_connector/index.js index 25aa94a2a..686203d4c 100644 --- a/lib/modules/blockchain_connector/index.js +++ b/lib/modules/blockchain_connector/index.js @@ -80,7 +80,7 @@ class BlockchainConnector { if (!networkId && constants.blockchain.networkIds[self.blockchainConfig.networkType]) { networkId = constants.blockchain.networkIds[self.blockchainConfig.networkType]; } - if (id !== networkId) { + if (id.toString() !== networkId.toString()) { self.logger.warn(__('Connected to a blockchain node on network {{realId}} while your config specifies {{configId}}', {realId: id, configId: networkId})); self.logger.warn(__('Make sure you started the right blockchain node')); }