aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton <anton@chainsecurity.com>2018-05-29 00:08:33 +0800
committerAnton <anton@chainsecurity.com>2018-05-29 00:08:33 +0800
commit1d23a5c81b03b8b52225e942603c84b237d4e63c (patch)
tree7b1a40930061f88641991826abb7e0cb09728dd9
parent62dc6e20eb1f7188c6452519782e8ebe54c1c540 (diff)
downloadtangerine-wallet-browser-1d23a5c81b03b8b52225e942603c84b237d4e63c.tar
tangerine-wallet-browser-1d23a5c81b03b8b52225e942603c84b237d4e63c.tar.gz
tangerine-wallet-browser-1d23a5c81b03b8b52225e942603c84b237d4e63c.tar.bz2
tangerine-wallet-browser-1d23a5c81b03b8b52225e942603c84b237d4e63c.tar.lz
tangerine-wallet-browser-1d23a5c81b03b8b52225e942603c84b237d4e63c.tar.xz
tangerine-wallet-browser-1d23a5c81b03b8b52225e942603c84b237d4e63c.tar.zst
tangerine-wallet-browser-1d23a5c81b03b8b52225e942603c84b237d4e63c.zip
error message fix
-rw-r--r--app/scripts/controllers/transactions/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/scripts/controllers/transactions/index.js b/app/scripts/controllers/transactions/index.js
index 586a80baf..6609b80b0 100644
--- a/app/scripts/controllers/transactions/index.js
+++ b/app/scripts/controllers/transactions/index.js
@@ -128,7 +128,6 @@ class TransactionController extends EventEmitter {
@param opts {object} - with the key origin to put the origin on the txMeta
*/
-
async newUnapprovedTransaction (txParams, opts = {}) {
log.debug(`MetaMaskController newUnapprovedTransaction ${JSON.stringify(txParams)}`)
const initialTxMeta = await this.addUnapprovedTransaction(txParams)
@@ -145,7 +144,7 @@ class TransactionController extends EventEmitter {
case 'failed':
return reject(this.cleanErrorStack(new Error(finishedTxMeta.err.message)))
default:
- return reject(this.cleanErrorStack(`MetaMask Tx Signature: Unknown problem: ${JSON.stringify(finishedTxMeta.txParams)}`))
+ return reject(this.cleanErrorStack(new Error(`MetaMask Tx Signature: Unknown problem: ${JSON.stringify(finishedTxMeta.txParams)}`)))
}
})
})