Skip to content

Commit

Permalink
fix(store): onBeforeSpliceDynamicData receives the previous encoded l…
Browse files Browse the repository at this point in the history
…engths [M-01] (#2020)
  • Loading branch information
yonadaaa committed Jan 3, 2024
1 parent c4fba3e commit 6db95ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/rich-carpets-remember.md
@@ -0,0 +1,5 @@
---
"@latticexyz/store": patch
---

Fixed `StoreCore` to pass `previousEncodedLengths` into `onBeforeSpliceDynamicData`.
2 changes: 1 addition & 1 deletion packages/store/src/StoreCore.sol
Expand Up @@ -1021,7 +1021,7 @@ library StoreCoreInternal {
dynamicFieldIndex: dynamicFieldIndex,
startWithinField: startWithinField,
deleteCount: deleteCount,
encodedLengths: updatedEncodedLengths,
encodedLengths: previousEncodedLengths,
data: data
});
}
Expand Down

0 comments on commit 6db95ce

Please sign in to comment.