solana-labs / explorer

Explorer for Solana clusters
https://explorer.solana.com
MIT License
214 stars 278 forks source link

[anchor] display bytes as hex #320

Open guibescos opened 7 months ago

guibescos commented 7 months ago

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

vercel[bot] commented 7 months ago

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

A member of the Team first needs to authorize it.