Serializing 0u8 should yield the same result as serializing 0u16, 0u32, 0u64.
Right now serializing "0u64" yields [136, 0, 0, 0, 0, 0, 0, 0, 0] which is invalid - with primitive types and with big endian encoding it doesn't make difference if we'll serialize it as 8 zeros, or one zero.
Serializing
0u8
should yield the same result as serializing0u16
,0u32
,0u64
.Right now serializing "0u64" yields
[136, 0, 0, 0, 0, 0, 0, 0, 0]
which is invalid - with primitive types and with big endian encoding it doesn't make difference if we'll serialize it as 8 zeros, or one zero.