aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-09-07 05:01:07 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-09-07 05:01:07 +0800
commita73aecc796c2f2416227508db8e96e22915cfa65 (patch)
tree7cdc662b5d6bf4dd74a8b3eea5dc7f6bb34a850b /app
parent6c83ba762e73419c6db444dde05b3ebe31d7028e (diff)
downloadtangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar
tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar.gz
tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar.bz2
tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar.lz
tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar.xz
tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar.zst
tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.zip
fix merge and errors disaperaing on update
Diffstat (limited to 'app')
-rw-r--r--app/scripts/controllers/transactions.js2
-rw-r--r--app/scripts/lib/tx-state-manager.js7
2 files changed, 6 insertions, 3 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index 3f2a7ce16..5aaee7be0 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -56,7 +56,7 @@ module.exports = class TransactionController extends EventEmitter {
})
},
getConfirmedTransactions: (address) => {
- return this.getFilteredTxList({
+ return this.txStateManager.getFilteredTxList({
from: address,
status: 'confirmed',
err: undefined,
diff --git a/app/scripts/lib/tx-state-manager.js b/app/scripts/lib/tx-state-manager.js
index 64925c528..eb2a187db 100644
--- a/app/scripts/lib/tx-state-manager.js
+++ b/app/scripts/lib/tx-state-manager.js
@@ -180,9 +180,12 @@ module.exports = class TransactionStateManger extends ObservableStore {
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')
}