gnolang / tm2-js-client

The Tendermint2 JS/TS client (SDK)
https://gno.land
Apache License 2.0
9 stars 2 forks source link

feat: Change the request ID to UUID #88

Closed jinoosss closed 10 months ago

jinoosss commented 10 months ago

I missed one in that PR. (https://github.com/gnolang/tm2-js-client/pull/85) When creating the request, you need to put the UUID in the ID. (because the ID of the response object you receive from the server is the same as the request ID)

This is the part that causes the response to be lost for the same ID. https://github.com/gnolang/tm2-js-client/blob/main/src/provider/websocket/ws.ts#L57-L63