-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update Feature.sol #38
Conversation
Fixed the code readability which was messed up on line 662 (Refer |
Thank you @Aryan9592 for your contribution ! |
Congrats, your important contribution to this open-source project has earned you a GitPOAP! GitPOAP: 2023 Feature Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
@n1c01a5 what about this? |
I would not prioritarize this refactoring but feel free to do it. @Aryan9592 I had never heard of this optimization before. Thank you for teaching it to me! |
@n1c01a5 Rareskills really explained it in a hard way. This is a clear one https://gist.github.com/grGred/9bab8b9bad0cd42fc23d4e31e7347144#pack-structs-in-solidity I be implementing this one in |
This PR aims for two types of optimizations:
constant
toimmutable
for variables storing the keccak hashes. Refer thisSome typos were fixed
Also, there's one more fix we can make in the structs. The structs which are used currently are kind of using more slots than required which costs more gas. If we aim to pack structs, then it be more efficient
Thanks!