From c1d08c667aed3bd92bdc2c00d09fcf89d8439480 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Tue, 19 Feb 2019 09:44:23 -0500 Subject: [PATCH] fix: specify full path for password files (geth) --- .../embark/src/lib/modules/blockchain_process/gethClient.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/embark/src/lib/modules/blockchain_process/gethClient.js b/packages/embark/src/lib/modules/blockchain_process/gethClient.js index 266572ccd..3010b4695 100644 --- a/packages/embark/src/lib/modules/blockchain_process/gethClient.js +++ b/packages/embark/src/lib/modules/blockchain_process/gethClient.js @@ -1,6 +1,7 @@ const async = require('async'); const {exec, spawn} = require('child_process'); const fs = require('../../core/fs'); +const path = require('path'); const GethMiner = require('./miner'); const semver = require('semver'); const constants = require('../../constants'); @@ -73,7 +74,8 @@ class GethClient { } if (config.account && config.account.password) { - cmd.push(`--password=${config.account.password}`); + const resolvedPath = path.resolve(fs.dappPath(), config.account.password); + cmd.push(`--password=${resolvedPath}`); } if (Number.isInteger(config.verbosity) && config.verbosity >= 0 && config.verbosity <= 5) {