Skip to content

Commit

Permalink
Fixed AssertionError
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsereda committed Sep 21, 2024
1 parent 91205aa commit ff865ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bridge_indexer/handlers/etherlink/on_withdraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ async def on_withdraw(
f'Incorrect Withdraw Routing Info: Specified `proxy` contract address not whitelisted: {token_contract}. Operation ignored.'
)
return
else:
if etherlink_token.id != event.payload.ticket_owner[-40:]:
ctx.logger.warning(
'Incorrect Withdraw Routing Info. Operation ignored.'
)

withdrawal = await EtherlinkWithdrawOperation.create(
timestamp=datetime.fromtimestamp(event.data.timestamp, tz=UTC),
Expand Down

0 comments on commit ff865ee

Please sign in to comment.