Skip to content

Commit db93975

Browse files
committed
Tighten console output for favorites
1 parent 30b57bb commit db93975

File tree

1 file changed

+1
-6
lines changed
  • basics/favorites/anchor/programs/favorites/src

1 file changed

+1
-6
lines changed

basics/favorites/anchor/programs/favorites/src/lib.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,9 @@ pub mod favorites {
1616
let user_public_key = context.accounts.user.key();
1717
msg!("Greetings from {}", context.program_id);
1818
msg!(
19-
"User {user_public_key}'s favorite number is {number}, favorite color is: {color}",
19+
"User {user_public_key}'s favorite number is {number}, favorite color is: {color}, and their hobbies are {hobbies:?}",
2020
);
2121

22-
msg!(
23-
"User's hobbies are: {:?}",
24-
hobbies
25-
);
26-
2722
context.accounts.favorites.set_inner(Favorites {
2823
number,
2924
color,

0 commit comments

Comments
 (0)