Skip to content

Commit

Permalink
fix: eip-712 hex data display (ApeWorX#2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
banteg committed Jun 10, 2024
1 parent 58c4331 commit 73bc44b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ape_accounts/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ def sign_message(self, msg: Any, **signer_options) -> Optional[MessageSignature]
# Message Data
display_msg += "Message\n"
for field, value in msg._body_["message"].items():
if isinstance(value, bytes):
value = HexBytes(value).hex()
display_msg += f"\t{field}: {value}\n"

# Convert EIP712Message to SignableMessage for handling below
Expand Down

0 comments on commit 73bc44b

Please sign in to comment.