fix waiting tx

This commit is contained in:
Iuri Matias 2019-05-23 11:53:40 -04:00
parent 61b356079b
commit 9ae3edf9dc
1 changed files with 3 additions and 2 deletions

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()
})
});