Skip to content

Commit

Permalink
fix: logic for out of order processing
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Nov 20, 2024
1 parent cb66e1b commit d2e0f6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion icon_contracts/workers/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,9 @@ def process_audit(self):
# Checking last_updated_timestamp case for when we see a contract approval
# event before we see the contract submission
if (
contract.last_updated_timestamp is None or
contract.last_updated_block is None or
self.block.number > contract.last_updated_block
or contract.last_updated_timestamp is None
):
logger.info(
f"Updating contract status from approval for address = {address} at block = {self.block.number}"
Expand Down

0 comments on commit d2e0f6b

Please sign in to comment.