This repository was archived by the owner on Jul 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -269,10 +269,10 @@ module my_first_module::message {
269269 debug::print(&message); // Print the message being set
270270
271271 if (exists<MessageHolder>(account_addr)) {
272- debug::print(&b"Updating existing message"); // Print debug info
272+ debug::print(&string::utf8( b"Updating existing message") ); // Print debug info
273273 move_from<MessageHolder>(account_addr);
274274 } else {
275- debug::print(&b"Creating new message"); // Print when creating new
275+ debug::print(&string::utf8( b"Creating new message") ); // Print when creating new
276276 };
277277
278278 move_to(account, MessageHolder { message });
@@ -327,7 +327,7 @@ INCLUDING DEPENDENCY MoveStdlib
327327BUILDING my_first_module
328328Running Move unit tests
329329[debug] "Hello World"
330- [debug] 0x4372656174696e67206e6577206d657373616765
330+ [debug] "Creating new message"
331331[debug] "Hello World"
332332[ PASS ] 0x9ec1cfa30b885a5c9d595f32f3381ec16d208734913b587be9e210f60be9f9ba::message_tests::test_set_and_get_message
333333Test result: OK. Total tests: 1; passed: 1; failed: 0
@@ -509,4 +509,4 @@ Here are some **suggested next steps to get a deeper understanding of Move modul
509509- [Account basics](../../network/blockchain/accounts.mdx)
510510- [TypeScript SDK](../sdks/ts-sdk.mdx)
511511- [Python SDK](../sdks/python-sdk.mdx)
512- - [REST API specification](../../network/nodes/aptos-api-spec.mdx)
512+ - [REST API specification](../../network/nodes/aptos-api-spec.mdx)
You can’t perform that action at this time.
0 commit comments