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

fix: Client URL query param encoding #67

Merged
merged 1 commit into from
Sep 27, 2023
Merged

fix: Client URL query param encoding #67

merged 1 commit into from
Sep 27, 2023

Conversation

DavidNix
Copy link
Contributor

The client implementation didn't take into account query params.

So it would escape the ? as shown below, causing the API to error. What's strange is that when testing cosmoshub, there was no such error.

https://api.testnet.noble.strange.love/cosmos/bank/v1beta1/balances/noble2ar2gaqww6aphxd9qve5qglj8kqq96je6a4yrhj/by_denom%3Fdenom=uusdc

Refactored so that now you can pass in a url.URL.

@DavidNix DavidNix changed the title fix: Client URL param encoding fix: Client URL query param encoding Sep 27, 2023
@DavidNix DavidNix merged commit 77d6a5a into main Sep 27, 2023
2 checks passed
@DavidNix DavidNix deleted the nix/fix/url-params branch September 27, 2023 22:22
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.

2 participants