rethrow unknown errors

This commit is contained in:
poma 2020-10-01 07:00:54 +03:00
parent 14272e8305
commit 4a4cfc5d48
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657

View File

@ -312,8 +312,10 @@ class Transaction {
if (this._hasError(e.message, sameTxErrors)) {
console.log('Same transaction is already in mempool, skipping submit')
// do nothing
return // do nothing
}
throw new Error(`Send error: ${e.message}`)
}
/**