Skip to content

Commit

Permalink
fix(store): do not render push and pop for static arrays, use static …
Browse files Browse the repository at this point in the history
…length [M-02] (#2175)

Co-authored-by: Kevin Ingersoll <[email protected]>
  • Loading branch information
yonadaa and holic authored Jan 23, 2024
1 parent c642ff3 commit 1bf2e90
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 591 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-geckos-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/store": patch
---

Updated codegen to not render `push` and `pop` methods for static arrays. The `length` method now returns the hardcoded known length instead of calculating it like with a dynamic array.
108 changes: 8 additions & 100 deletions e2e/packages/contracts/src/codegen/tables/StaticArray.sol

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1bf2e90

Please sign in to comment.