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

Looping in contracts not always a good idea #1

Open
segun opened this issue Oct 23, 2022 · 0 comments
Open

Looping in contracts not always a good idea #1

segun opened this issue Oct 23, 2022 · 0 comments

Comments

@segun
Copy link

segun commented Oct 23, 2022

If there are say 1000 attendees, this function will either run out of gas or it will require a lot of gas. Use a mapping instead.

https://github.com/niemacodes/web3rsvp/blob/d1519d27d941d0a4eddba7742bf5b04063b36f77/contracts/Web3RSVP.sol#L99

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

No branches or pull requests

1 participant