From 2b39c43e818a193e5f037c33880db4c319a6ac98 Mon Sep 17 00:00:00 2001 From: Nicolas Gotchac Date: Thu, 21 Sep 2017 10:10:21 +0200 Subject: [PATCH] Fix number of confirmations for transaction (#6552) * 1 confirmation when tx is mined * Spelling mistake --- js/src/redux/providers/requestsActions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/src/redux/providers/requestsActions.js b/js/src/redux/providers/requestsActions.js index dfcbcf4a3..fe3be2e43 100644 --- a/js/src/redux/providers/requestsActions.js +++ b/js/src/redux/providers/requestsActions.js @@ -72,8 +72,9 @@ export const trackRequest = (requestId, { transactionHash = null } = {}) => (dis const requestData = requests[requestId]; let blockSubscriptionId = -1; - // Set the block height to 0 at the beggining - data.blockHeight = new BigNumber(0); + // Set the block height to 1 at the beginning (transaction mined, + // thus one confirmation) + data.blockHeight = new BigNumber(1); // If the request was a contract deployment, // then add the contract with the saved metadata to the account