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

txs API requests that include MsgLiquidStake fail to parse internally #722

Open
4 tasks
joeabbey opened this issue Apr 15, 2023 · 5 comments
Open
4 tasks

Comments

@joeabbey
Copy link

Summary of Bug

Executing a REST query against: /cosmos/tx/v1beta1/txs may fail with:

{
  "code": 2,
  "message": "codespace sdk code 2: tx parse error: Mismatched \"*types.MsgLiquidStake\": {TagNum: 2, GotWireType: \"varint\" != WantWireType: \"bytes\"}",
  "details": [
  ]
}

Version

v8.0.0

Steps to Reproduce

https://api-stride.mzonder.com/cosmos/tx/v1beta1/txs?page=1&limit=100&order_by=2&events=transfer.recipient%3D%27stride1xwazl8ftks4gn00y5x3c47auquc62ssuxqxxju%27

Screenshots

The above should be sufficient

Additional context

While it's possible to "step over" this txn, it is kind of a pain while trying to gather data for tax reporting


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@joeabbey
Copy link
Author

@joeabbey
Copy link
Author

So if this is due to falling into "unknownproto", I'm guessing this is a codec registration issue?

@asalzmann
Copy link
Contributor

@joeabbey
Copy link
Author

@asalzmann, that's likely because Polkachu's RPC is not an archive node, whereas mzonder's is.

Note: there's no MsgLiquidStake return from Polkachu.

@sampocs
Copy link
Collaborator

sampocs commented Apr 18, 2023

My understanding was that this is a consequence of the fact that the MsgLiquidStake data type was changed in v5 (uint64 → sdk.Int). So when querying archive nodes with a history before v5, it's unable to reconcile the differing types.

@joeabbey are you aware of a way to fix this?

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

3 participants