1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

transactions:state - add a submittedTime stamp so the ui has a better grasp of the time of submission

This commit is contained in:
frankiebee 2018-03-13 09:51:37 -07:00
parent 179066fe6b
commit 9fd349d740

View File

@ -214,7 +214,11 @@ module.exports = class TransactionStateManager extends EventEmitter {
} }
// should update the status of the tx to 'submitted'. // should update the status of the tx to 'submitted'.
// and add a time stamp for when it was called
setTxStatusSubmitted (txId) { setTxStatusSubmitted (txId) {
const txMeta = this.getTx(txId)
txMeta.submittedTime = (new Date()).getTime()
this.updateTx(txMeta, 'txStateManager - add submitted time stamp')
this._setTxStatus(txId, 'submitted') this._setTxStatus(txId, 'submitted')
} }