Merge pull request #9 from status-im/fix_waiting_tx

fix waiting tx
This commit is contained in:
Iuri Matias 2019-05-23 11:54:09 -04:00 committed by GitHub
commit 26f404261b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,15 +16,16 @@ function doAction(actionText, action) {
name: 'action',
message: 'Execute?',
}
]).then((answer) => {
]).then(async (answer) => {
if (answer.action === false) return resolve();
console.dir("executing...");
try {
action()
await action()
} catch (e) {
console.dir("== error")
console.dir(e)
}
console.log("\n");
resolve()
})
});