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

Smart auto-selection of types #54

Open
hal0x2328 opened this issue Nov 13, 2019 · 0 comments
Open

Smart auto-selection of types #54

hal0x2328 opened this issue Nov 13, 2019 · 0 comments

Comments

@hal0x2328
Copy link
Member

Instead of defaulting to the Hexstring type for notification values in the transaction page, pre-select a type before the component renders, based on a few logical rules. For instance:

  • If all bytes in the hexstring fall in the printable ASCII range, switch the decoder to String type.
  • If all bytes in the hexstring are not in the printable ASCII range and the hexstring is exactly 40 bytes long, switch the decoder to the Address type.
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

No branches or pull requests

1 participant