Skip to content
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

Resolved #2 #16

Closed
wants to merge 1 commit into from
Closed

Resolved #2 #16

wants to merge 1 commit into from

Conversation

vishal18713
Copy link

#2 => The memory keyword cannot be used inside a struct declaration as these structs are meant to define the layout of data in storage or as part of the contract's state. Unlike function parameters or local variables, which are temporary and stored in memory, struct members are stored in the contract's storage or are part of the contract's state. Therefore, specifying memory for struct members would be contradictory, as structs are intended to define data storage layout, not temporary data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants