fix: u64 to usize conversion

usize::from_le_bytes will take an array of length 2, 4 or 8 bytes depending on the target pointer size. Since wasm uses 32b, there was a failure while reading serialized values due to the number of bytes read being incorrect. I also update version rln-wasm to 0.0.9 (npm package needs to be updated to include this fix)
This commit is contained in:
Richard Ramos
2023-05-02 14:18:15 -04:00
committed by RichΛrd
parent 654c77dcf6
commit 33d3732922
5 changed files with 18 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "rln-wasm"
version = "0.0.8"
version = "0.0.9"
edition = "2021"
license = "MIT or Apache2"