1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Fix truncating JsonString (#552)

This commit is contained in:
ms 2022-12-15 08:04:34 +01:00 committed by GitHub
parent 1b106ef270
commit b548ae61dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,8 @@ struct JsonBytes {
}; };
inline void to_json(JsonValueScope &jv, const JsonBytes json_bytes) { inline void to_json(JsonValueScope &jv, const JsonBytes json_bytes) {
jv << JsonString(PSLICE() << base64_encode(json_bytes.bytes)); auto base64 = base64_encode(json_bytes.bytes);
jv << JsonString(base64);
} }
template <class T> template <class T>
struct JsonVectorBytesImpl { struct JsonVectorBytesImpl {