Skip to content

Commit

Permalink
fix: revert change to support hexbytes v1
Browse files Browse the repository at this point in the history
previous implementation left mostly intact so that in the future if
hexbytes v1 becomes standard, it will be trivial to bump the dependency
without breaking anything.
  • Loading branch information
iamdefinitelyahuman committed Feb 1, 2024
1 parent cfc9450 commit f987887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth_event/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ def decode_traceTransaction(


def _0xstring(value: bytes) -> str:
# prepend bytes with 0x to avoid a breaking change from HexBytes v1
return f"0x{HexBytes(value).hex()}"
# placeholder, will be used to prepend bytes with 0x to avoid HexBytes v1 breaking change
return f"{HexBytes(value).hex()}"


def _params(abi_params: List) -> List:
Expand Down

0 comments on commit f987887

Please sign in to comment.