mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
use .includes
This commit is contained in:
parent
11d57adc5c
commit
611338c4e0
@ -426,11 +426,11 @@ module.exports = class TransactionController extends EventEmitter {
|
|||||||
const errorMessage = err.message.toLowerCase()
|
const errorMessage = err.message.toLowerCase()
|
||||||
const isKnownTx = (
|
const isKnownTx = (
|
||||||
// geth
|
// geth
|
||||||
errorMessage === 'replacement transaction underpriced'
|
errorMessage.includes('replacement transaction underpriced')
|
||||||
|| errorMessage.includes('known transaction')
|
|| errorMessage.includes('known transaction')
|
||||||
// parity
|
// parity
|
||||||
|| errorMessage === 'gas price too low to replace'
|
|| errorMessage.includes('gas price too low to replace')
|
||||||
|| errorMessage === 'transaction with the same hash was already imported.'
|
|| errorMessage.includes('transaction with the same hash was already imported')
|
||||||
// other
|
// other
|
||||||
|| errorMessage.includes('gateway timeout')
|
|| errorMessage.includes('gateway timeout')
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user