FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

refactor: extract duplicated `elem_types_to_hash` logic by sashass1315 · Pull Request #414 · BitVM/BitVM · GitHub

/ BitVM Public

refactor: extract duplicated elem_types_to_hash logic - #414

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

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

Conversation

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL