Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit a882a34

Browse files
authored
Fix your first move module debug strings (#989)
1 parent 87d08a3 commit a882a34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/nextra/pages/en/build/guides/first-move-module.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
327327
BUILDING my_first_module
328328
Running 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
333333
Test 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)

0 commit comments

Comments
 (0)