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

cosmossdk.io/math.LegacyDec and Int are not correctly deserialized in "some" grpc queries #550

Open
doggystylez opened this issue Mar 1, 2024 · 0 comments

Comments

@doggystylez
Copy link

Summary of Bug

please see cosmos#18430

it has been suggested that replace google.golang.org/grpc => google.golang.org/grpc v1.33.2 will fix it but it requires changing the grpc client implementation and some other stuff to get it to build

Version

osmosisd v23

Steps to Reproduce

$ osmosisd q poolmanager estimate-single-pool-swap-exact-amount-in 1399 41489642uosmo ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 --grpc-insecure --grpc-addr grpc.osmosis.zone:9090
panic: invalid Go type math.Int for field osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInResponse.token_out_amount

<...>

$ osmosisd q mint epoch-provisions --grpc-insecure --grpc-addr grpc.osmosis.zone:9090
panic: invalid Go type math.LegacyDec for field osmosis.mint.v1beta1.QueryEpochProvisionsResponse.epoch_provisions

<...>

interestingly, other queries which also include a LegacyDec, such as in concentratedliquidity module seem to work...

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

1 participant