From 7ca01f3bd06f00c81b3278b193bb8dbb99d26c81 Mon Sep 17 00:00:00 2001 From: Robert Martin-Legene <robert@martin-legene.dk> Date: Sat, 29 Feb 2020 22:33:47 -0300 Subject: [PATCH] Make unlock() use the "new" BFA RPC API call --- bin/unlock.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/unlock.js b/bin/unlock.js index 2680929..bcd3b89 100755 --- a/bin/unlock.js +++ b/bin/unlock.js @@ -60,8 +60,12 @@ function unlockall() { var wallets = new Array(); web3.bfa.personal.listWallets( - function pushone(x) + function pushone(err,x) { + if ( err ) + bye( 1, err ); + if ( x == undefed ) + bye( 1, "wallets not defined" ); var failures = 0; var promises = new Array(); var i = x.length; -- GitLab