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

backport 0.31x: add http timeout & more data decode tx resp #1602

Open
wants to merge 2 commits into
base: 0.31
Choose a base branch
from

Conversation

ducphamle2
Copy link

@ducphamle2 ducphamle2 commented Aug 16, 2024

  • Add a timeout value for the http() function, preventing long requests from hanging.
  • Return additional data fields in decodeTxResponse in case of custom responses like timestamp, block info...
  • Return additional tx fields in txsQuery of StargateClient for custom query responses.

We have been patching this in different projects for quite some time. Eg: oraidex-sdk

It would be inconvenient to just include patch logic in every repository we need. Also, contributing to cosmjs is also a good way to help improve the tool for the community

@ducphamle2 ducphamle2 changed the title backport: add http timeout & more data decode tx resp backport 0.31x: add http timeout & more data decode tx resp Aug 16, 2024
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.

1 participant