Closed seemenkina closed 3 months ago
The serialisation and deserialisation functions have problems with json field types because all value are serialized as string and deserialize required number value. And test function cover only deserialisation on constant value
Serialisation to String: https://github.com/vacp2p/zerokit/blob/fe2b224981d35ff3bfe0b67f1fe1ae169301e078/rln/src/protocol.rs#L775-L777 Deserialisation from u64 : https://github.com/vacp2p/zerokit/blob/fe2b224981d35ff3bfe0b67f1fe1ae169301e078/rln/src/protocol.rs#L247-L248
addressed in #253
The serialisation and deserialisation functions have problems with json field types because all value are serialized as string and deserialize required number value. And test function cover only deserialisation on constant value
Serialisation to String: https://github.com/vacp2p/zerokit/blob/fe2b224981d35ff3bfe0b67f1fe1ae169301e078/rln/src/protocol.rs#L775-L777 Deserialisation from u64 : https://github.com/vacp2p/zerokit/blob/fe2b224981d35ff3bfe0b67f1fe1ae169301e078/rln/src/protocol.rs#L247-L248