-
Notifications
You must be signed in to change notification settings - Fork 0
CTL Tx Balancing & Coin Selection #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| txHasPlutusV1 :: Boolean | ||
| txHasPlutusV1 = | ||
| case p.transaction ^. _witnessSet <<< _plutusScripts of | ||
| case (unwrap (unwrap unbalancedTx).witnessSet).plutusScripts of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the change mainly for readability, or does it have performance implications as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about performance, but I think we should avoid using lenses for such simple expressions to not overcomplicate the code
|
@errfrom also, would it be worth introducing a newtype |
|
@marcusbfs We've actually had this wrapper before, and it always came down to balancing type safety with ease of use. I believe we chose to prioritise the latter, so I'd leave it as is for now. |
No description provided.