Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display H256 instances in events as hex encoded string #550

Merged
merged 5 commits into from
May 6, 2022

Conversation

ascjones
Copy link
Collaborator

@ascjones ascjones commented May 6, 2022

Following #547, instances of H256 in events are displayed as raw byte arrays. Like so (see Code::Stored::code_hash):

image.

This PR introduces a customer decoder for H256 instances which displays it as a hex encoded string instead:

image

In doing this I have split the custom type transcoders into separate encoders and decoders so that a type can have only one or both.

@ascjones ascjones merged commit 1dab046 into master May 6, 2022
@ascjones ascjones deleted the aj/fix-display-code-hash branch May 6, 2022 15:48
@ascjones ascjones mentioned this pull request May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants