Skip to content

Commit

Permalink
refactor: use ZERO_ADDRESS instead of hardcoded addr
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshultz committed Feb 23, 2024
1 parent 237cec7 commit 1c478d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from ape import chain
from ape.api import BlockAPI
from ape.types import ContractLog
from ape.utils import ZERO_ADDRESS
from ape_tokens import tokens # type: ignore[import]
from taskiq import Context, TaskiqDepends, TaskiqState

Expand Down Expand Up @@ -49,7 +50,7 @@ def exec_event1(log):


# Looking for burn events
@app.on_(USDC.Transfer, start_block=18588777, to="0x0000000000000000000000000000000000000000")
@app.on_(USDC.Transfer, start_block=18588777, to=ZERO_ADDRESS)
def handle_burn(log):
return {"burned": log.value}

Expand Down

0 comments on commit 1c478d3

Please sign in to comment.