From 7a3a34ba94e732af627d5e9c2b9869af774eb55d Mon Sep 17 00:00:00 2001 From: vladostp Date: Tue, 14 Apr 2020 10:27:33 +0200 Subject: [PATCH] [orchestrator] Non ok transaction bug fix --- orchestrator/src/chain.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/orchestrator/src/chain.js b/orchestrator/src/chain.js index 9af7be3..0a4994c 100644 --- a/orchestrator/src/chain.js +++ b/orchestrator/src/chain.js @@ -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 { @@ -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) {