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

Manually set the indexed values for balances and avoid using loops #43

Open
Ryanmtate opened this issue Mar 8, 2019 · 0 comments
Open

Comments

@Ryanmtate
Copy link
Contributor

https://github.com/tokenio/tokeninc-smart-contracts/blob/df35f925609b21a202d37eacad28d05d6ea6149f/contracts/TokenIOStorage.sol#L421

@RostyslavBortmanAdoria

If we know the size of the array, we may want to manually set the indexed values. For loop setup costs ~20k gas from my understanding. This would further reduce the cost.

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