mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
disable removing complex objects
This commit is contained in:
parent
d32ca36253
commit
8e078a0457
@ -198,8 +198,6 @@ where
|
||||
// TODO: check
|
||||
let string = String::from_utf8(string_mem).unwrap();
|
||||
values.push_back(InterfaceValue::String(string));
|
||||
|
||||
utils::deallocate(instance, instruction, string_offset as _, string_size as _)?;
|
||||
} else {
|
||||
values.push_back(InterfaceValue::String("".to_string()));
|
||||
}
|
||||
@ -218,8 +216,6 @@ where
|
||||
)?;
|
||||
|
||||
values.push_back(InterfaceValue::ByteArray(byte_array));
|
||||
|
||||
utils::deallocate(instance, instruction, array_offset as _, array_size as _)?;
|
||||
} else {
|
||||
values.push_back(InterfaceValue::ByteArray(vec![]));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user