Skip to content

Commit

Permalink
Merge pull request #264 from UnitapApp/feature/add-donation-contract-…
Browse files Browse the repository at this point in the history
…address

Add donation contract address
  • Loading branch information
PooyaFekri authored Jan 16, 2024
2 parents e35c2ac + 64a51d1 commit ca7bf33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions faucet/celery_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ def process_donation_receipt(donation_receipt_pk):
if (
Web3Utils.to_checksum_address(tx.get("to"))
!= evm_fund_manager.get_fund_manager_checksum_address()
or
# TODO: must create donation contract model
Web3Utils.to_checksum_address(tx.get("to"))
!= Web3Utils.to_checksum_address(
"0xE6Bc2586fcC1Da738733867BFAf381B846AAe834".lower()
)
):
donation_receipt.delete()
return
Expand Down

0 comments on commit ca7bf33

Please sign in to comment.