Use error.value.message with error.message as fallback (#8825)

* Use  over the whole stringified error object which doesn't show the actual error message that is set as the

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Feedback commit
feature/default_network_editable
Thomas Huang 5 years ago committed by GitHub
parent 3b2bbe0705
commit 792366a20f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/scripts/controllers/transactions/pending-tx-tracker.js

@ -79,7 +79,7 @@ export default class PendingTransactionTracker extends EventEmitter {
try { try {
await this._resubmitTx(txMeta, blockNumber) await this._resubmitTx(txMeta, blockNumber)
} catch (err) { } catch (err) {
const errorMessage = err.message.toLowerCase() const errorMessage = err.value?.message?.toLowerCase() || err.message.toLowerCase()
const isKnownTx = ( const isKnownTx = (
// geth // geth
errorMessage.includes('replacement transaction underpriced') || errorMessage.includes('replacement transaction underpriced') ||

Loading…
Cancel
Save