classic-terra / oracle-feeder

Oracle Feeder Daemon
Apache License 2.0
6 stars 7 forks source link

not supported for network #27

Closed nghuyenthevinh2000 closed 1 year ago

nghuyenthevinh2000 commented 1 year ago

[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)

inon-man commented 1 year ago

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 https://github.com/classic-terra/oracle-feeder/blob/a5551a0d6863ea8abce2b8011df094410e4274e8/feeder/src/vote.ts#L314

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