Skip to content

refactor: Eliminate code duplication in hex/bytes deserialization#493

Open
andrewshab3 wants to merge 4 commits intograndinetech:developfrom
andrewshab3:develop
Open

refactor: Eliminate code duplication in hex/bytes deserialization#493
andrewshab3 wants to merge 4 commits intograndinetech:developfrom
andrewshab3:develop

Conversation

@andrewshab3
Copy link
Copy Markdown

Summary

Refactored hex/bytes deserialization by introducing a common HexOrBytesConvert trait, eliminating ~80 lines of duplicated Visitor boilerplate across 3 modules.

Changes

  • Added HexOrBytesConvert trait and unified HexOrBytesVisitor to shared.rs
  • Simplified prefixed_hex_or_bytes_{array,cow,generic_array}.rs

Each type now only implements conversion logic while sharing common deserialization infrastructure.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Nov 22, 2025

CLA assistant check
All committers have signed the CLA.

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