Fix number of confirmations for transaction (#6552)

* 1 confirmation when tx is mined

* Spelling mistake
This commit is contained in:
Nicolas Gotchac 2017-09-21 10:10:21 +02:00 committed by Gav Wood
parent 9e0d2c15cd
commit 2b39c43e81

View File

@ -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