mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 15:20:18 +00:00
fix one more bug
This commit is contained in:
parent
f1cfca6f15
commit
3482fb7682
@ -31,8 +31,12 @@ pub(crate) fn generate_vector_ser(
|
||||
ParsedType::Boolean(_) => {
|
||||
quote! {
|
||||
let converted_bool_vector: Vec<u8> = arg.into_iter().map(|v| *v as u8).collect::<_>();
|
||||
let ptr = converted_bool_vector.as_ptr();
|
||||
let len = converted_bool_vector.len();
|
||||
|
||||
fluence::internal::add_object_to_release(Box::new(converted_bool_vector));
|
||||
(converted_bool_vector.as_ptr() as _, converted_bool_vector.len() as _)
|
||||
|
||||
(ptr as _, len as _)
|
||||
}
|
||||
}
|
||||
ParsedType::I8(_)
|
||||
|
Loading…
Reference in New Issue
Block a user