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

not supported for network #27

Closed
nghuyenthevinh2000 opened this issue Sep 29, 2023 · 1 comment · Fixed by #33
Closed

not supported for network #27

nghuyenthevinh2000 opened this issue Sep 29, 2023 · 1 comment · Fixed by #33
Assignees
Labels
bug Something isn't working

Comments

@nghuyenthevinh2000
Copy link

[INFO][Fri, 29 Sep 2023 05:22:43 GMT] [VOTE] Requesting on chain data
[INFO][Fri, 29 Sep 2023 05:22:44 GMT] [VOTE] Requesting prices from price server http://oracle-price-server:8532/latest
[INFO][Fri, 29 Sep 2023 05:22:44 GMT] [VOTE] Create transaction and sign
[INFO][Fri, 29 Sep 2023 05:22:44 GMT] [PREVOTE] msg: ["{"@type":\xxxxxxx

[ERROR][Fri, 29 Sep 2023 05:22:44 GMT] Error: Not supported for the network
at MsgAggregateExchangeRatePrevote.toData (/app/node_modules/@terra-money/terra.js/src/core/oracle/msgs/MsgAggregateExchangeRatePrevote.ts:71:13)
at /app/node_modules/@terra-money/terra.js/src/core/Tx.ts:185:42
at Array.map ()
at TxBody.toData (/app/node_modules/@terra-money/terra.js/src/core/Tx.ts:185:31)
at Tx.toData (/app/node_modules/@terra-money/terra.js/src/core/Tx.ts:59:23)
at /app/src/vote.ts:212:56
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async processVote (/app/src/vote.ts:211:15)
at async vote (/app/src/vote.ts:333:5)

@nghuyenthevinh2000 nghuyenthevinh2000 added the bug Something isn't working label Sep 29, 2023
@inon-man
Copy link

The error is raised when LCDClient was not created with isClassic == true
https://github.com/classic-terra/terra.js/blob/3fad98e9cf7ddd474ac64daca9fec457cec2be2c/src/core/oracle/msgs/MsgAggregateExchangeRatePrevote.ts#L71

But, there is a static definition of it

isClassic: true,

We need more information.. version, environment, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants