Skip to content

Commit

Permalink
fix(estimate_fee_fix): fix (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhercha authored Aug 29, 2024
1 parent 221e9ae commit d2b7e8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pragma-sdk/pragma_sdk/onchain/mixins/randomness.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async def process_request(request):
*request.to_list(),
max_fee=self.execution_config.max_fee,
)
estimate_fee = await submit_call.estimate_fee()
estimate_fee = await submit_call.estimate_fee(block_number="pending")
if estimate_fee.overall_fee > request.callback_fee_limit:
logger.error(
"OUT OF GAS %s > %s - request %s cancelled",
Expand Down
3 changes: 2 additions & 1 deletion vrf-listener/vrf_listener/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ async def _consume_full_queue(requests_queue: asyncio.Queue) -> List[RandomnessR
while not requests_queue.empty():
try:
e = requests_queue.get_nowait()
events.append(e)
if e not in events:
events.append(e)
except asyncio.QueueEmpty:
break
return events
Expand Down

0 comments on commit d2b7e8a

Please sign in to comment.