Skip to content

Commit

Permalink
Add notes to tx updates to clarify logs
Browse files Browse the repository at this point in the history
  • Loading branch information
danfinlay committed Nov 29, 2018
1 parent 5bbd329 commit 59f89b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/scripts/controllers/transactions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class TransactionController extends EventEmitter {
} catch (error) {
log.warn(error)
txMeta.loadingDefaults = false
this.txStateManager.updateTx(txMeta)
this.txStateManager.updateTx(txMeta, 'Failed to calculate gas defaults.')
throw error
}

Expand Down Expand Up @@ -492,7 +492,7 @@ class TransactionController extends EventEmitter {
this.txStateManager.updateTx(txMeta, 'transactions: gas estimation for tx on boot')
}).catch((error) => {
tx.loadingDefaults = false
this.txStateManager.updateTx(tx)
this.txStateManager.updateTx(tx, 'failed to estimate gas during boot cleanup.')
this.txStateManager.setTxStatusFailed(tx.id, error)
})
})
Expand Down

0 comments on commit 59f89b9

Please sign in to comment.