gballet / zig-rlp

A zig implementation of RLP
The Unlicense
7 stars 2 forks source link

fix complex type slice decoding #8

Closed jsign closed 9 months ago

jsign commented 9 months ago

This PR fixes some mistakes in the way complex types are decoded, mostly around wrong constants being used.

I've also noticed that this complex type decoding isn't working correctly for slices that actually contain elements. (i.e: now things work for empty slices). I can explain better in Matrix or in a further issue to keep track of it.