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

Error getting txInfosByHeight with MsgVote #363

Open
roryoreilly opened this issue Aug 8, 2023 · 1 comment
Open

Error getting txInfosByHeight with MsgVote #363

roryoreilly opened this issue Aug 8, 2023 · 1 comment

Comments

@roryoreilly
Copy link

roryoreilly commented Aug 8, 2023

A block with MsgVote produces an error attempting to get txInfosByHeight

Error: not supported msg /cosmos.gov.v1.MsgVote, stack: Error: not supported msg /cosmos.gov.v1.MsgVote
    at Object.fromData (/app/node_modules/@terra-money/terra.js/src/core/Msg.ts:436:15)
    at /app/node_modules/@terra-money/terra.js/src/core/Tx.ts:176:34
    at Array.map (<anonymous>)
    at Function.TxBody.fromData (/app/node_modules/@terra-money/terra.js/src/core/Tx.ts:176:21)
    at Function.Tx.fromData (/app/node_modules/@terra-money/terra.js/src/core/Tx.ts:51:14)
    at Function.TxInfo.fromData (/app/node_modules/@terra-money/terra.js/src/core/TxInfo.ts:61:10)
    at /app/node_modules/@terra-money/terra.js/src/client/lcd/api/TxAPI.ts:207:25
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) 

Code to reproduce the problem with a blockHeight which includes an error

const client = new LCDClient({
        URL: 'https://phoenix-lcd.terra.dev',
        chainID: 'phoenix-1',
        isClassic: false,
      });
const blockHeight = 6294327;
const txsInfo = await client.tx.txInfosByHeight(blockHeight);
@roryoreilly
Copy link
Author

roryoreilly commented Aug 8, 2023

PR using the same case from v1beta and v1 for MsgVote #364

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