Skip to content

refactor: extract duplicated elem_types_to_hash logic#414

Open
sashass1315 wants to merge 1 commit intoBitVM:mainfrom
sashass1315:refactor/extract-elem-types-helper
Open

refactor: extract duplicated elem_types_to_hash logic#414
sashass1315 wants to merge 1 commit intoBitVM:mainfrom
sashass1315:refactor/extract-elem-types-helper

Conversation

@sashass1315
Copy link
Copy Markdown

The logic for building elem_types_to_hash (reversed parameter element types + result element type) was duplicated in two loops within partial_scripts_from_segments. Extracted into get_elem_types_to_hash helper function for clarity and maintainability.

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.

1 participant