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

Update Voting.sol: Enhanced 'Slots' usage #309

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0xScratch
Copy link
Contributor

🛠️ Fixes Issue

The contract is using more slots than necessary. Actually, EVM provided every smart contract some slots for storage. The more you use them, the more the gas costs. Thus, finding a way to reduce them is a great way to have some gas optimizations

👨‍💻 Changes proposed

Just changed the order of state variables. For a better explanation, refer this PR -> allo-protocol/allo-v2#237

✔️ Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • This PR does not contain plagiarized content.
  • The title of my pull request is a short description of the requested changes.

@github-actions
Copy link

github-actions bot commented Oct 9, 2023

Our team will soon review your PR. Thanks @Aryan9592 :)

@github-actions github-actions bot added the SWOC23 label Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant