gnolang / tm2-js-client

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

Encode escape characters when generating transaction #129

Closed jinoosss closed 5 months ago

jinoosss commented 5 months ago

Description

This PR adds a function to encode characters that are not JSON marshaled by GO when generating signature data.

The characters handled are <, >, &.

See the GO comment below. https://cs.opensource.google/go/go/+/refs/tags/go1.20.13:src/encoding/json/encode.go;l=46-53

zivkovicmilos commented 5 months ago

Thank you for the contribution as always @jinoosss 🙏