Skip to content

Commit

Permalink
Fix double serialization rkyv bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Daksh14 committed Feb 15, 2024
1 parent 2bacf6b commit 62302ef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Binary file modified assets/dusk_wallet_core.wasm
Binary file not shown.
6 changes: 0 additions & 6 deletions src/compat/rkyv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ pub fn rkyv_bls_scalar_array(args: i32, len: i32) -> i64 {
}
}

let bls_scalars =
match rkyv::to_bytes::<Vec<BlsScalar>, MAX_LEN>(&bls_scalars).ok() {
Some(v) => v.to_vec(),
None => return utils::fail(),
};

utils::rkyv_into_ptr(bls_scalars)
}

Expand Down

0 comments on commit 62302ef

Please sign in to comment.