Skip to content
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

feat(baseapp): add sdk.Result to simulation response #13

Merged
merged 2 commits into from
Jul 9, 2020

Conversation

whylee259
Copy link
Contributor

@whylee259 whylee259 commented Jul 6, 2020

Description

Return result and gasConsumed (or GasInfo) when using ctx.QueryWithData("/app/simulate", txBytes) instead of only gasConsumed and add error handling of it.

Motivation and context

How has this been tested?

Screenshots (if appropriate):

Checklist:

  • I followed the contributing guidelines.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@whylee259 whylee259 added the WIP label Jul 6, 2020
@whylee259 whylee259 self-assigned this Jul 6, 2020
@whylee259 whylee259 changed the title [WIP] feat(baseapp): add sdk.Result to simulation response feat(baseapp): add sdk.Result to simulation response Jul 8, 2020
@whylee259 whylee259 removed the WIP label Jul 8, 2020
@whylee259 whylee259 requested review from hsyis and kfangw July 8, 2020 05:31
@kfangw
Copy link
Contributor

kfangw commented Jul 9, 2020

Please release with a version tag v0.38.3-0.0.1 when you finish this PR
I think that the version tag does not need to specify the version of Tendermint.

Copy link
Contributor

@hsyis hsyis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@whylee259 whylee259 merged commit 3ba3021 into Finschia:develop Jul 9, 2020
@whylee259 whylee259 deleted the fix/simulation-error-handling branch July 9, 2020 07:51
kfangw pushed a commit that referenced this pull request Sep 24, 2020
* baseapp: add sdk.Result to simulation response

* authclient: update txBuilder to return sdk.SimulationResponse

Co-authored-by: Federico Kunze <[email protected]>
kfangw pushed a commit that referenced this pull request Oct 28, 2020
* baseapp: add sdk.Result to simulation response

* authclient: update txBuilder to return sdk.SimulationResponse

Co-authored-by: Federico Kunze <[email protected]>
@kfangw
Copy link
Contributor

kfangw commented Nov 16, 2020

This patch is identical to cosmos-sdk 5837
which is included in the v0.39.0 release

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.

4 participants