-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
miniscript: factor out a couple parts of Terminal::from_tree
In a later commit we will rewrite Terminal::from_tree entirely. But the beginning and end (which parse out and then apply "wrappers", the modifiers added to miniscript fragments using `:`) will remain the same. Pull this logic out into a pair of helper functions. This also reduces the total amount of indendentation, reduces function size, and reduces the total number of variables in scope at once. So this is a useful refactor independent of any future work.
- Loading branch information
Showing
2 changed files
with
96 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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