-
Notifications
You must be signed in to change notification settings - Fork 469
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
Algod: Minor refactoring REST client submitForm
from go-sdk PR #335
#5253
Algod: Minor refactoring REST client submitForm
from go-sdk PR #335
#5253
Conversation
c39af7e
to
cdabcf7
Compare
Codecov Report
@@ Coverage Diff @@
## master #5253 +/- ##
==========================================
- Coverage 53.76% 53.74% -0.02%
==========================================
Files 450 450
Lines 56184 56184
==========================================
- Hits 30206 30195 -11
- Misses 23628 23639 +11
Partials 2350 2350
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
submitForm
from go-sdk PR #335submitForm
from go-sdk PR #335
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.
Generally looks good. This is a problem I ran into while working on simulate earlier.
In fact I made this follow-up PR to improve simulation response decoding by requesting msgpack responses: ahangsu#1. I can open a PR in go-algorand for that after this one is merged
Co-authored-by: Bob Broderick <118225939+bbroder-algo@users.noreply.github.com>
45d5225
to
489da67
Compare
Summary
The motivation of this PR is that, we want to allow for algod to simulate with option of
unlimit-log
: see #5230.We need to send transaction with auxiliary query parameters. The current implementation in
restClient
disallowed us for such feasibility, while algorand/go-algorand-sdk#335 contain relevant modification, and this PR mimic the changes, by separatingrequest
intoparams
andbody
.We expect to use this for
simulation
, where/v2/transactions/simulate
has query parameterunlimit-log: bool
, with raw body of txn(-group). The simulation request body resembles the one in compilation, where/v2/teal/compile
has query parametersourcemap: bool
and raw body of program source bytes.Test Plan
Implement
Compile
with sourcemap option, and check existence ofsourcemap
field, which can be controlled by request optionSourcemap *bool
.