From e99b33d94da63575b6e836e54d8110dfaca50801 Mon Sep 17 00:00:00 2001 From: Fraser Scott Date: Tue, 5 Dec 2023 16:20:03 +0000 Subject: [PATCH 1/2] fix(store):onBeforeSpliceDynamicData receives the previous encoded lengths [M-01] --- packages/store/src/StoreCore.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/store/src/StoreCore.sol b/packages/store/src/StoreCore.sol index 7697618970..3967a81f13 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 }); } From 4b3b8b999a3ac7fafc5cabdc620828e4fb5d50e2 Mon Sep 17 00:00:00 2001 From: Fraser Scott Date: Wed, 3 Jan 2024 14:16:21 +0000 Subject: [PATCH 2/2] chore: changeset --- .changeset/rich-carpets-remember.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/rich-carpets-remember.md 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`.