Skip to content

Ensure JSON serialization compatibility#464

Merged
tzdybal merged 2 commits intomainfrom
tzdybal/json/tmjson
Jul 4, 2022
Merged

Ensure JSON serialization compatibility#464
tzdybal merged 2 commits intomainfrom
tzdybal/json/tmjson

Conversation

@tzdybal
Copy link
Copy Markdown
Contributor

@tzdybal tzdybal commented Jul 1, 2022

Because Tendermint encodes ints as strings, and expects strings while
decoding, Optimint has to encode int values as strings as well.

This PR ensures that Tendermint JSON library is used for encoding of results both in plain HTTP requests and JSON RPC requests.

Resolves #463.

@tzdybal tzdybal requested a review from jbowen93 July 1, 2022 20:01
@tzdybal tzdybal self-assigned this Jul 1, 2022
@tzdybal tzdybal changed the title fix: ensure JSON serialization compatibility Ensure JSON serialization compatibility Jul 1, 2022
Because Tendermint encodes ints as strings, and expects strings while
decoding, Optimint has to encode int values as strings as well.

Resolves #463.
@tzdybal tzdybal force-pushed the tzdybal/json/tmjson branch from 5aeeff9 to e454904 Compare July 1, 2022 20:02
@tzdybal tzdybal marked this pull request as ready for review July 4, 2022 14:18
@tzdybal tzdybal requested review from adlerjohn and liamsi as code owners July 4, 2022 14:18
@tzdybal tzdybal merged commit bfa0fa4 into main Jul 4, 2022
@tzdybal tzdybal deleted the tzdybal/json/tmjson branch July 4, 2022 20:12
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

Successfully merging this pull request may close these issues.

JSON compatibility with Tendermint

2 participants