Skip to content

Commit

Permalink
fix(store-sync): use dynamic data in postgres decoded indexer (#1983)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Ingersoll <[email protected]>
  • Loading branch information
yonadaa and holic authored Nov 30, 2023
1 parent 504e25d commit 34203e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thick-masks-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/store-sync": patch
---

Fixed invalid value when decoding records in `postgres-decoded` storage adapter
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export async function createStorageAdapter<TConfig extends StoreConfig = StoreCo
const value = decodeValueArgs(table.valueSchema, {
staticData: record.staticData ?? "0x",
encodedLengths: record.encodedLengths ?? "0x",
dynamicData: record.encodedLengths ?? "0x",
dynamicData: record.dynamicData ?? "0x",
});

debug("upserting record", {
Expand Down

0 comments on commit 34203e4

Please sign in to comment.