mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
fix some bugs
This commit is contained in:
parent
c0d2d9fab1
commit
dddfbdc31c
@ -39,7 +39,7 @@ executable_instruction!(
|
||||
let memory_view = memory.view();
|
||||
|
||||
if length == 0 {
|
||||
runtime.stack.push(InterfaceValue::String("".into()));
|
||||
runtime.stack.push(InterfaceValue::ByteArray(vec![]));
|
||||
|
||||
return Ok(())
|
||||
}
|
||||
|
@ -331,7 +331,9 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
println!(" before transmuting: {:?}", result);
|
||||
let result = safe_transmute::transmute_to_bytes::<u64>(&result);
|
||||
println!(" after transmuting: {:?}", result);
|
||||
let result_pointer = write_to_instance_mem(instance, instruction, &result)?;
|
||||
|
||||
Ok(result_pointer)
|
||||
|
Loading…
Reference in New Issue
Block a user