on master help sign in
Merge pull request #498 from urbit/m/know-more
d93d23eFang
src/lib/txn.js+3−1
@@ -120,7 +120,9 @@ const sendSignedTransaction = (web3, stx, doubtNonceError) => {
120 // that it's because the tank already submitted our transaction.
120 // that it's because the tank already submitted our transaction.
121 // we just wait for first confirmation here.
121 // we just wait for first confirmation here.
122 const message = typeof err === 'string' ? err : err.message || '';
122 const message = typeof err === 'string' ? err : err.message || '';
123+ const isKnownError =
123− const isKnownError = message.includes('known transaction: ');
124+ message.includes('known transaction') ||
125+ message.includes('already known');
124 const isNonceError =
126 const isNonceError =
125 message.includes("the tx doesn't have the correct nonce.") ||
127 message.includes("the tx doesn't have the correct nonce.") ||
126 message.includes('nonce too low');
128 message.includes('nonce too low');