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

String handling using memory keyword #21

Closed
wants to merge 1 commit into from

Conversation

Ansh-Agrawal1817
Copy link

Resolved #1
Improved the reliability of the list1 function in Contract.sol by making sure that string data is handled correctly. It involved using the memory keyword.
Screenshot 2024-03-15 at 4 50 38 PM

@Ansh-Agrawal1817
Copy link
Author

As string cannot be directly stored inside the temporary memory of blockchain(unlike uint), it needs to be specified with the memory keyword. Using memory is generally cheaper in terms of gas costs.

@TechWizard9999
Copy link
Contributor

@Ansh-Agrawal1817
LGTM

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.

Correct Variable Declaration in Function Parameters
2 participants