Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zjma committed Feb 22, 2024
1 parent 980f257 commit 6d89f37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aptos-move/framework/src/natives/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ fn native_print(
debug_assert!(ty_args.is_empty());
debug_assert!(args.len() == 1);

let val = safely_pop_arg!(args, Struct);
let bytes = val.unpack()?.next().unwrap();

println!(
"[debug] {}",
std::str::from_utf8(&bytes.value_as::<Vec<u8>>()?).unwrap()
Expand Down

0 comments on commit 6d89f37

Please sign in to comment.