diff --git a/src/ape/api/transactions.py b/src/ape/api/transactions.py index e6e12c1214..fc7f908cc2 100644 --- a/src/ape/api/transactions.py +++ b/src/ape/api/transactions.py @@ -190,13 +190,13 @@ def __str__(self) -> str: if isinstance(data["data"], str): data["data"] = ( "0x" - + bytes(data["data"][:3], encoding="utf8").hex() + + bytes(data["data"][:4], encoding="utf8").hex() + "..." - + bytes(data["data"][-3:], encoding="utf8").hex() + + bytes(data["data"][-4:], encoding="utf8").hex() ) else: data["data"] = ( - to_hex(bytes(data["data"][:3])) + "..." + to_hex(bytes(data["data"][-3:])) + to_hex(bytes(data["data"][:4])) + "..." + to_hex(bytes(data["data"][-4:])) ) else: if isinstance(data["data"], str):