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

[anchor] display bytes as hex #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Feb 5, 2024

Current the Anchor bytes type (Vec<u8> in rust) gets represented very poorly as it's interpreted as a utf-8 string.
Instead it should be represented as a hex payload similar to serialized instruction data.

Current : image
https://explorer.solana.com/tx/32dxbGfqTo7H56aZ9rNJWUy2tBEHgbnojVsBBJ6RiG17f4vNpZF6zzsWHojXA5943MxxTVobvjegURdVxeHAUqMy?cluster=devnet

After:
image

Copy link

vercel bot commented Feb 5, 2024

@guibescos is attempting to deploy a commit to the Solana Labs Team on Vercel.

A member of the Team first needs to authorize it.

@guibescos guibescos changed the title Do it [anchor] display bytes as hex Feb 5, 2024
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.

None yet

1 participant