mirror.py bugfix

This commit is contained in:
Tim
2024-04-03 20:36:27 -04:00
parent 3a9d0221ae
commit f736b13332

View File

@@ -153,7 +153,7 @@ async def main():
if isinstance(x, Exception):
log.error(f'Failed to mirror token {token}: {x}')
exit(1)
txs = [await mirrorenv.transact.mirrorToken(info, gas=LOTSA_GAS) for info in token_infos]
txs = await asyncio.gather(*[mirrorenv.transact.mirrorToken(info, gas=LOTSA_GAS) for info in token_infos], return_exceptions=True)
for token, x in zip(tokens, txs):
if isinstance(x, Exception):
log.error(f'Failed to mirror token {token}: {x}')