mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-22 13:19:06 +00:00
coerce boolean value using more commmon !!
This commit is contained in:
parent
ab7784c1e9
commit
4a321e3c0c
@ -316,7 +316,7 @@ Blockchain.prototype.initChainAndGetAddress = function(callback) {
|
||||
};
|
||||
|
||||
var BlockchainClient = function(blockchainConfig, client, env, onReadyCallback, onExitCallback) {
|
||||
const isDev = Boolean(blockchainConfig.isDev);
|
||||
const isDev = !!blockchainConfig.isDev;
|
||||
// TODO add other clients at some point
|
||||
if (client === 'geth') {
|
||||
return new Blockchain({blockchainConfig, client: GethCommands, env, isDev, onReadyCallback, onExitCallback});
|
||||
|
Loading…
x
Reference in New Issue
Block a user