-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Program Optimization - Updated Program Architecture lesson #485
Program Optimization - Updated Program Architecture lesson #485
Conversation
…o fix-program-optimization-program-architecture
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work, some small and medium (mainly around resizing) fixes needed. See comments.
#[derive(AnchorSerialize, AnchorDeserialize, Clone, InitSpace)] | ||
pub struct GameConfig { | ||
pub max_items_per_player: u8, | ||
pub for_future_use: [u64; 16], // Health of Enemies? Experience per item? Action Points per Action? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again double check re: account resizing. We might want to focus more on resizing and completely delete the concept of saving space for future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes removed these and added details on resizing using realloc with backward compatibility.
Thanks! @mikemaccana I have updated content as per comments and resolved comments. Please review and let me know if there is any additional feedback. |
Can you please resolve the recent conflicts? But yes this looks good. |
Thanks! @mikemaccana I have resolved the conflicts. Please check. |
…undation#485) * Fixed links * Updated content and code snippets * Fixed grammar mistake * Fixed content and formatting as per comments * Added realloc related changes for account resizing * Updated content as per comment and realloc constraint
Problem
Summary of Changes
Fixes #
Unboxed PRs
Main solution - Unboxed-Software/anchor-rpg#6
Challenge solution - Unboxed-Software/anchor-rpg#7