mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 07:10:21 +00:00
add some logs
This commit is contained in:
parent
27c13e9547
commit
a44c433c4d
@ -18,6 +18,7 @@ executable_instruction!(
|
||||
InstructionErrorKind::StackIsTooSmall { needed: 2 },
|
||||
)
|
||||
})?;
|
||||
println!("byte_array lift memory: {:?}", inputs);
|
||||
|
||||
let memory_index = 0;
|
||||
let memory = runtime
|
||||
@ -38,10 +39,13 @@ executable_instruction!(
|
||||
.try_into()
|
||||
.map_err(|e| (e, "length").into())
|
||||
.map_err(|k| InstructionError::from_error_kind(instruction.clone(), k))?;
|
||||
|
||||
println!("byte_array lift memory: pointer {} length {}", pointer, length);
|
||||
|
||||
let memory_view = memory.view();
|
||||
|
||||
if length == 0 {
|
||||
runtime.stack.push(IValue::String("".into()));
|
||||
runtime.stack.push(IValue::ByteArray(vec![]));
|
||||
|
||||
return Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user