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

/cosmwasm/wasm/v1/contract/build_address query does not work #2147

Open
vladjdk opened this issue Mar 5, 2025 · 1 comment
Open

/cosmwasm/wasm/v1/contract/build_address query does not work #2147

vladjdk opened this issue Mar 5, 2025 · 1 comment

Comments

@vladjdk
Copy link

vladjdk commented Mar 5, 2025

The cosmwasm/wasm/v1/contract/build_address endpoint is broken.
Most paths have /contract/{address}/query so build_address is colliding and the router is interpreting it as an address that can't be parsed.

Example query:
https://cosmos-api.stakeandrelax.net/cosmwasm/wasm/v1/contract/build_address?code_hash=4ee07a1474cb1429cfbdba98fb52ca2efc2fe8602f8e1978dbc3f45b71511ca9&creator_address=cosmos1pgerac2dwufp7mzs4403h3je9ld4vkqngjtgdx&salt=74657374696e67

Response:
{"code":2,"message":"decoding bech32 failed: invalid separator index -1","details":[]}

@NotJeremyLiu
Copy link
Contributor

valid issue

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

No branches or pull requests

2 participants