Open TbLtzk opened 5 years ago
The RLP specification has one path for encoding 0-55 bytes and another path for encoding longer byte arrays.
This should be programmed as if length < 56 or if length <= 55. There are two places with length < 55
if length < 56
if length <= 55
length < 55
personally I prefer <56 but to stay consistent with other places I'd go for <=55
<56
<=55
The RLP specification has one path for encoding 0-55 bytes and another path for encoding longer byte arrays.
This should be programmed as
if length < 56
orif length <= 55
. There are two places withlength < 55