-
Notifications
You must be signed in to change notification settings - Fork 486
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
adding another field for lsig disassembly #3577
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3577 +/- ##
==========================================
- Coverage 47.58% 47.56% -0.03%
==========================================
Files 370 370
Lines 60092 60093 +1
==========================================
- Hits 28595 28581 -14
- Misses 28185 28196 +11
- Partials 3312 3316 +4
Continue to review full report at Codecov.
|
Would like to get at least one more opinion on this. Current return value certainly seems wrong. It has one place for disassembly, and if there's an app it simply overwrites the logicsig disassembly. I would consider this PR a win compared to that. It adds a new place to tuck the lsig disassembly so that the potential app disassembly overwrites only the first copy of it (which is still returned for backward compatibility). I wonder if we shouldn't add yet another place for disassembly - a place just for app disassembly. Then, in a latter version we could remove the existing location which is "shared" by logicsigs and apps. Of course, I don't really see why we're returning disassembly at all. Seems an orthogonal issue to dry-run. But we are, so let's do it well. Maybe @jasonpaulos @winder @JasonWeathersby would have feelings about such an API change. |
The overloaded disassembly field does seem strange. If the field really does have dubious value, a query param to select what (and whether) you'd like to disassemble something would work instead of adding another field. I'm not familiar with the functionality to have any real opinion about this. Seems fine to add of it's useful, but it does require updating the SDKs. |
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.
I agree that I'm not sure how useful the disassembly field for this endpoint is in general, but the fact that the lsig disassembly gets overridden is a clear bug, so this makes sense as an incremental improvement.
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.
Looks good. Let's recall that we may wish to add an app specific disassembly field, and then deprecate the old shared field. Perhaps we would do this at once in a breaking v3 update.
Summary
Adding separate field for disassembled lsig program.
closes #3563
Test Plan
None yet