add some logs

This commit is contained in:
vms 2021-04-25 13:11:38 +03:00
parent 27c13e9547
commit a44c433c4d

View File

@ -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(())
}