@@ -166,8 +166,11 @@ const sendSignedTransaction = (web3, stx, doubtNonceError, confirmationCb) => {
166166 // we just wait for first confirmation here.
167167 console.error(err);
168168 if (
169− doubtNonceError &&
170− (err.message || '').includes("the tx doesn't have the correct nonce.")
169+ (err.message || '').includes('known transaction: ') ||
170+ (doubtNonceError &&
171+ (err.message || '').includes(
172+ "the tx doesn't have the correct nonce."
173+ ))
171174 ) {
172175 console.log('nonce error, likely from gas tank submission, ignoring');
173176 const txHash = web3.utils.keccak256(rawTx);
@@ -182,7 +185,7 @@ const sendSignedTransaction = (web3, stx, doubtNonceError, confirmationCb) => {
182185 }
183186 });
184187 } else {
185− reject(err.message);
188+ reject(err.message || 'Transaction sending failed!');
186189 }
187190 });
188191 });