Skip to content

Improve input conversion logic in BaseBytes component #11562

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

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

Conversation

ap211unitech
Copy link
Member

📝 Description

This PR addresses a regression where input for Bytes component starting with 0x are incorrectly parsed as hex-encoded byte strings. This caused issues where display names like 0xTaylor were misparsed as hex bytes (e.g., 0x0a0000), leading to incorrect rendering.

This update improves the logic by only interpreting a string as hex if it is a valid hex sequence. Non-hex strings starting with 0x are now correctly treated as plain text.

🤔 Previous behaviour

260577349-db1f5933-e84f-427f-bb1d-b900289ab33b

✅ Current behaviour

Screen.Recording.2025-05-16.at.10.47.36.mov

@ap211unitech ap211unitech linked an issue May 16, 2025 that may be closed by this pull request
10 tasks
@ap211unitech ap211unitech self-assigned this May 16, 2025
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.

Handling of Raw Bytes Fields in Polkadot.js.org
2 participants