mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
tx controller - fix error serialization
This commit is contained in:
parent
5e6962342d
commit
25f9746dab
@ -382,9 +382,12 @@ module.exports = class TransactionController extends EventEmitter {
|
||||
this._setTxStatus(txId, 'confirmed')
|
||||
}
|
||||
|
||||
setTxStatusFailed (txId, reason) {
|
||||
setTxStatusFailed (txId, err) {
|
||||
const txMeta = this.getTx(txId)
|
||||
txMeta.err = reason
|
||||
txMeta.err = {
|
||||
message: err.toString(),
|
||||
stack: err.stack,
|
||||
}
|
||||
this.updateTx(txMeta)
|
||||
this._setTxStatus(txId, 'failed')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user