Closed sbellem closed 4 years ago
Just need to handle TransactionNotFound
exception, due to changes in web3
versions > 5.0.0
:
async def wait_for_receipt(w3, tx_hash):
while True:
try:
tx_receipt = w3.eth.getTransactionReceipt(tx_hash)
except TransactionNotFound:
tx_receipt = None
if tx_receipt is not None:
break
await asyncio.sleep(5)
return tx_receipt
Fix was merged via #424.
When trying out the AsynchroMix applications
apps/asynchromix/asynchromix.py
mentioned under Blockchain Integration in theREADME.md
the following error occurs:The complete stack trace: