Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

refactor: extract duplicated elem_types_to_hash logic#414

Open
sashass1315 wants to merge 1 commit intoBitVM:mainBitVM/BitVM:mainfrom
sashass1315:refactor/extract-elem-types-helpersashass1315/BitVM:refactor/extract-elem-types-helperCopy head branch name to clipboard
Open

refactor: extract duplicated elem_types_to_hash logic#414
sashass1315 wants to merge 1 commit intoBitVM:mainBitVM/BitVM:mainfrom
sashass1315:refactor/extract-elem-types-helpersashass1315/BitVM:refactor/extract-elem-types-helperCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.