diff --git a/.changeset/rich-carpets-remember.md b/.changeset/rich-carpets-remember.md new file mode 100644 index 0000000000..5ecc17e2ea --- /dev/null +++ b/.changeset/rich-carpets-remember.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/store": patch +--- + +Fixed `StoreCore` to pass `previousEncodedLengths` into `onBeforeSpliceDynamicData`. diff --git a/packages/store/src/StoreCore.sol b/packages/store/src/StoreCore.sol index 716d07b478..60e6e993c0 100644 --- a/packages/store/src/StoreCore.sol +++ b/packages/store/src/StoreCore.sol @@ -1021,7 +1021,7 @@ library StoreCoreInternal { dynamicFieldIndex: dynamicFieldIndex, startWithinField: startWithinField, deleteCount: deleteCount, - encodedLengths: updatedEncodedLengths, + encodedLengths: previousEncodedLengths, data: data }); }