Skip to content

Commit

Permalink
Tighten console output for favorites
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaccana committed Jul 31, 2024
1 parent 30b57bb commit db93975
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions basics/favorites/anchor/programs/favorites/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,9 @@ pub mod favorites {
let user_public_key = context.accounts.user.key();
msg!("Greetings from {}", context.program_id);
msg!(
"User {user_public_key}'s favorite number is {number}, favorite color is: {color}",
"User {user_public_key}'s favorite number is {number}, favorite color is: {color}, and their hobbies are {hobbies:?}",
);

msg!(
"User's hobbies are: {:?}",
hobbies
);

context.accounts.favorites.set_inner(Favorites {
number,
color,
Expand Down

0 comments on commit db93975

Please sign in to comment.