fix(@embark/geth): add --allow-insecure-unlock

This commit is contained in:
Ricardo Guilherme Schmidt 2020-08-07 10:48:09 -03:00 committed by Michael Bradley
parent 6dbdf63aeb
commit 7702b92cf3
1 changed files with 2 additions and 0 deletions

View File

@ -337,6 +337,7 @@ class GethClient {
if (self.isDev && self.config.unlockAddressList) {
// The first address is the dev account, that is automatically unlocked by the client using blank password
args.push("--unlock=" + self.config.unlockAddressList.slice(1));
args.push("--allow-insecure-unlock");
return callback(null, "--unlock=" + self.config.unlockAddressList.slice(1));
}
let accountAddress = "";
@ -353,6 +354,7 @@ class GethClient {
}));
}
args.push("--unlock=" + accountAddress);
args.push("--allow-insecure-unlock");
return callback(null, "--unlock=" + accountAddress);
}
callback(null, "");