Skip to content

Conversation

@craig-iam-smith
Copy link

Changes:

  • consolidate two loops in to one, all data is available and relevant in first pass
  • remove array allocation, it is unnecessary when using only one loop
  • less gas is used, and code is easier to understand

Test:

  • updated tests to pass with less gas being used

@craig-iam-smith craig-iam-smith marked this pull request as ready for review March 19, 2023 23:21
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

Successfully merging this pull request may close these issues.

1 participant