-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Panic message when query a IBC denom supply #11037
Comments
Well the panic isn't good for sure, but I'm highly doubtful that's the correct URL. Try with |
@RaulBernal did you have a chance to test this? |
This seems like a bug, @alexanderbez
|
I didn't make it works |
In #10394, for querying balances we changed the REST endpoint: - "/cosmos/bank/v1beta1/balances/{address}/{denom}"
+ "/cosmos/bank/v1beta1/balances/{address}/by_denom?denom={ibc_denom}" We should do the same here for supply - "/cosmos/bank/v1beta1/supply/{denom}"
+ "/cosmos/bank/v1beta1/supply/by_denom?denom={ibc_denom}" It's a client-breaking change, but IMO it's worth it because it fixes querying IBC denoms. |
Summary of Bug
When you ask for a IBC denom supply you get a panic message:
https://cosmoshub.stakesystems.io/cosmos/bank/v1beta1/supply/0030B0AA8A1B9028703B1D17B965FBCBE0136571B854410BFEC3475B1DC765A1
https://cosmoshub.stakesystems.io/cosmos/bank/v1beta1/supply/977C824A11AF322AADA025C196ADC3A7F7409E342C35826106F9BF423AF32161
All the denoms with their amounts are here:
https://cosmoshub.stakesystems.io/cosmos/bank/v1beta1/supply
Version
some SDK v.0.44.x chains are affected
Steps to Reproduce
Ask a denom's supply:
https://cosmoshub.stakesystems.io/cosmos/bank/v1beta1/supply/0030B0AA8A1B9028703B1D17B965FBCBE0136571B854410BFEC3475B1DC765A1
For Admin Use
The text was updated successfully, but these errors were encountered: