You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Checking if the favorite account is same as the derived favorite pda
24
21
if favorite_account.key != &favorite_pda {
25
-
returnErr(ProgramError::IncorrectProgramId);
22
+
returnErr(ProgramError::IncorrectProgramId);
26
23
};
27
-
24
+
28
25
let favorites = Favorites::try_from_slice(&favorite_account.data.borrow())?;
29
26
30
-
msg!("User {}'s favorite number is {}, favorite color is: {}, and their hobbies are {:#?}", user.key, favorites.number, favorites.color, favorites.hobbies);
27
+
msg!(
28
+
"User {}'s favorite number is {}, favorite color is: {}, and their hobbies are {:#?}",
0 commit comments