Skip to content

Commit

Permalink
Fix a bug when onchain payment would trigger contract confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Jul 8, 2022
1 parent a06971c commit c63a8df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daemons/eth.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,8 @@ async def process_transaction(tx, contract=None, divisibility=18):
if to not in daemon.addresses:
return
for wallet in daemon.addresses[to]:
if contract and (not daemon.wallets[wallet].contract or contract != daemon.wallets[wallet].contract.address):
wallet_contract = daemon.wallets[wallet].contract.address if daemon.wallets[wallet].contract else None
if contract != wallet_contract:
continue
await daemon.trigger_event({"event": "new_transaction", "tx": tx.hash}, wallet)
if amount in daemon.wallets[wallet].used_amounts:
Expand Down

0 comments on commit c63a8df

Please sign in to comment.