Merge pull request #5 from fluencelabs/disable_removing_complex_objects

Disable removing complex objects
This commit is contained in:
vms 2020-08-23 04:06:07 +03:00 committed by GitHub
commit 8fe8cecc35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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![]));
}