confio / cosmjs-types

JS and TS types relating to Protocol Buffers used by Cosmos-SDK and other related projects
Apache License 2.0
36 stars 42 forks source link

`cosmos/tx/v1beta1/txs` not correct type #74

Closed happylolonly closed 1 year ago

happylolonly commented 1 year ago

https://github.com/confio/cosmjs-types/blob/main/src/cosmos/tx/v1beta1/service.ts

image

correct is tx_responses not txResponses

https://docs.cosmos.network/swagger/#/Service/GetTxsEvent

webmaster128 commented 1 year ago

The generated code is a TS type to which protobuf is deserialized to. It is not a JSON format as you linked. Different casings of the fields are expected.