Skip to content

Commit

Permalink
hotfix(events): (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhercha authored Aug 29, 2024
1 parent d2b7e8a commit 2b4c054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions pragma-sdk/pragma_sdk/onchain/mixins/randomness.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ async def process_request(request):
invocation = await self.account.execute_v1( # type: ignore[union-attr]
calls=all_calls, max_fee=self.execution_config.max_fee
)
await invocation.wait_for_acceptance()
return invocation

async def estimate_gas_submit_random_op(
Expand Down
4 changes: 1 addition & 3 deletions vrf-listener/vrf_listener/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ async def main(
while True:
if index_with_apibara:
events = await _consume_full_queue(requests_queue)
logger.info(events)
try:
await client.handle_random(
private_key=int(private_key, 16),
Expand Down Expand Up @@ -165,8 +164,7 @@ async def _consume_full_queue(requests_queue: asyncio.Queue) -> List[RandomnessR
while not requests_queue.empty():
try:
e = requests_queue.get_nowait()
if e not in events:
events.append(e)
events.append(e)
except asyncio.QueueEmpty:
break
return events
Expand Down

0 comments on commit 2b4c054

Please sign in to comment.