Skip to content

Commit 52ff384

Browse files
authored
Merge pull request #16 from Adamant-im/api-extension
Api extension
2 parents 8f7aa54 + a1811e5 commit 52ff384

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ops/rpc_server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ module.exports = function (vorpal) {
349349
err = this.error(-32602)
350350
reject(err)
351351
} else {
352-
if (args.passPhrase)
353-
cmd += '--passPhrase="' + args.passPhrase + '"'
354352
cmd = cmd + args.address + ' ' + args.amount
353+
if (args.passPhrase)
354+
cmd += ' --passPhrase "' + args.passPhrase + '"'
355355
data = vorpal.execSync(cmd)
356356
data.then(function (data) {
357357
if (data) {

0 commit comments

Comments
 (0)