mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
error message fix
This commit is contained in:
parent
62dc6e20eb
commit
1d23a5c81b
@ -128,7 +128,6 @@ class TransactionController extends EventEmitter {
|
|||||||
@param opts {object} - with the key origin to put the origin on the txMeta
|
@param opts {object} - with the key origin to put the origin on the txMeta
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
async newUnapprovedTransaction (txParams, opts = {}) {
|
async newUnapprovedTransaction (txParams, opts = {}) {
|
||||||
log.debug(`MetaMaskController newUnapprovedTransaction ${JSON.stringify(txParams)}`)
|
log.debug(`MetaMaskController newUnapprovedTransaction ${JSON.stringify(txParams)}`)
|
||||||
const initialTxMeta = await this.addUnapprovedTransaction(txParams)
|
const initialTxMeta = await this.addUnapprovedTransaction(txParams)
|
||||||
@ -145,7 +144,7 @@ class TransactionController extends EventEmitter {
|
|||||||
case 'failed':
|
case 'failed':
|
||||||
return reject(this.cleanErrorStack(new Error(finishedTxMeta.err.message)))
|
return reject(this.cleanErrorStack(new Error(finishedTxMeta.err.message)))
|
||||||
default:
|
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)}`)))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user