From 44230a12f2a30a95f580477611d8a65d6c08209e Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Wed, 6 Nov 2019 12:22:29 -0800 Subject: [PATCH] fix: keystore dir definition --- ethereum_clients/client_plugins/geth.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ethereum_clients/client_plugins/geth.js b/ethereum_clients/client_plugins/geth.js index c53e3743..afe7bd13 100644 --- a/ethereum_clients/client_plugins/geth.js +++ b/ethereum_clients/client_plugins/geth.js @@ -1,13 +1,11 @@ let platform = 'windows' let dataDir = `${process.env.APPDATA}/Ethereum` -let keystoreDir = `${dataDir}/keystore` // Platform specific initialization switch (process.platform) { case 'win32': { platform = 'windows' dataDir = `${process.env.APPDATA}\\Ethereum` - keystoreDir = `${dataDir}\\keystore` break } case 'linux': { @@ -24,6 +22,9 @@ switch (process.platform) { } } +const keystoreDir = + process.platform === 'win32' ? `${dataDir}\\keystore` : `${dataDir}/keystore` + const findIpcPathInLogs = logs => { let ipcPath for (const logPart of logs) {