diff --git a/src/transactions.js b/src/transactions.js index 7a9864c..d6b8fd2 100644 --- a/src/transactions.js +++ b/src/transactions.js @@ -23,17 +23,9 @@ let startBlock; let endBlock; let tokenDecs = {}; -const threeSecTimeout = _ => { - return new Promise((resolve, reject) => { - setTimeout(() => { - return reject(new Error('timeout')); - }, 10000); - }); -} - const retryableWithTimeout = async promise => { try { - return await Promise.race([promise, threeSecTimeout()]); + return await promise; } catch (e) { console.log(e) return await retryableWithTimeout(promise);