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 isKnownTx = (
|
||||
// geth
|
||||
errorMessage === 'replacement transaction underpriced'
|
||||
errorMessage.includes('replacement transaction underpriced')
|
||||
|| errorMessage.includes('known transaction')
|
||||
// parity
|
||||
|| errorMessage === 'gas price too low to replace'
|
||||
|| errorMessage === 'transaction with the same hash was already imported.'
|
||||
|| errorMessage.includes('gas price too low to replace')
|
||||
|| errorMessage.includes('transaction with the same hash was already imported')
|
||||
// other
|
||||
|| errorMessage.includes('gateway timeout')
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user