Skip to content

Commit

Permalink
[orchestrator] Non ok transaction bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vladostp committed Apr 14, 2020
1 parent fa12560 commit 7a3a34b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions orchestrator/src/chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ class Chain {
});
resolve(false);
}
// If transaction is not ok resolving promise to false
if (status.isDropped || status.isInvalid || status.isUsurped) {
resolve(false);
}
}).catch(err => reject(err));
});
} else {
Expand Down Expand Up @@ -220,6 +224,10 @@ class Chain {
});
resolve(false);
}
// If transaction is not ok resolving promise to false
if (status.isDropped || status.isInvalid || status.isUsurped) {
resolve(false);
}
}).catch(err => reject(err));
});
} catch (error) {
Expand Down

0 comments on commit 7a3a34b

Please sign in to comment.