You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we get this fixed somehow ? It completely breaks the ipld formats in ipfs-http-client
It seems just ommitting the varint encoding asnd decoding does the trick...
Why is it even varint encoded in the first place? the .getCodeVarint function can just encode the normal js number to an varint for that feature to work
Nevermind, I now know what the encoding is used for, I think i fixed it regardless.
I also added a test that tests against all codec names not just a few
This fixes#50 by removing the varintUint8ArrayDecode function and using varint.decode directly instead.
Co-authored-by: Jonas Kruckenberg <[email protected]>
The
getNumber
method is broken and doesn't work for codecs > 1 byte.Example:
The text was updated successfully, but these errors were encountered: