From 6d89f37c4fdc7b6b681a6fa9e5777aeed46c85c9 Mon Sep 17 00:00:00 2001 From: "zhoujun.ma" Date: Thu, 22 Feb 2024 12:13:51 -0800 Subject: [PATCH] update --- aptos-move/framework/src/natives/debug.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aptos-move/framework/src/natives/debug.rs b/aptos-move/framework/src/natives/debug.rs index 6caca261a2f56..f0028bcaa62a9 100644 --- a/aptos-move/framework/src/natives/debug.rs +++ b/aptos-move/framework/src/natives/debug.rs @@ -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::>()?).unwrap()