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

"fix" hours for message

This commit is contained in:
frankiebee 2017-10-05 11:42:01 -07:00
parent e128e4859f
commit 3cb9da2ae5

View File

@ -101,7 +101,8 @@ module.exports = class PendingTransactionTracker extends EventEmitter {
async _resubmitTx (txMeta) {
if (Date.now() > txMeta.time + this.retryTimePeriod) {
const err = new Error(`Gave up submitting after ${this.retryTimePeriod / 3.6e+6} hours.`)
const hours = (this.retryTimePeriod / 3.6e+6).toFixed(1)
const err = new Error(`Gave up submitting after ${hours} hours.`)
return this.emit('tx:failed', txMeta.id, err)
}