fix blockhash and txindex not present

pull/5370/head
yann300 3 years ago
parent b8eb704060
commit d3650e6803
  1. 2
      libs/remix-lib/src/execution/txRunnerWeb3.ts

@ -153,7 +153,7 @@ async function tryTillReceiptAvailable (txhash, web3) {
async function tryTillTxAvailable (txhash, web3) {
try {
const tx = await web3.eth.getTransaction(txhash)
if (tx) return tx
if (tx && tx.blockHash) return tx
} catch (e) {}
return await tryTillTxAvailable(txhash, web3)
}

Loading…
Cancel
Save