Skip to content

Commit

Permalink
Merge branch 'master' of github.com:vyperlang/titanoboa into fix-test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Feb 16, 2024
2 parents 7111c50 + 8b929f9 commit 0a56bef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions boa/util/abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
_parsers: dict[str, ABITypeNode] = {}


# XXX: inherit from bytes directly so that we can pass it to py-evm?
# inherit from `str` so that ABI encoder / decoder can work without failing
class Address(str): # (PYEVM_Address):
# inherit from `str` so that users can compare with regular hex string
# addresses
class Address(str):
# converting between checksum and canonical addresses is a hotspot;
# this class contains both and caches recently seen conversions
__slots__ = ("canonical_address",)
Expand All @@ -42,7 +42,7 @@ def __new__(cls, address):

def __repr__(self):
checksum_addr = super().__repr__()
return f"_Address({checksum_addr})"
return f"Address({checksum_addr})"


class _ABIEncoder(Encoder):
Expand Down

0 comments on commit 0a56bef

Please sign in to comment.