Skip to content

Commit

Permalink
Create hip-tables-check.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dk1a authored Sep 18, 2023
1 parent fcbaa3d commit bfbade3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .changeset/hip-tables-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@latticexyz/store": major
"@latticexyz/world": major
---

Store's `getRecord` has been updated to return `staticData`, `encodedLengths`, and `dynamicData` instead of a single `data` blob, to match the new behaviour of Store setter methods.

If you use codegenerated libraries, you will only need to update `encode` calls.

```diff
- bytes memory data = Mixed.encode(mixed.u32, mixed.u128, mixed.a32, mixed.s);
+ (bytes memory staticData, PackedCounter encodedLengths, bytes memory dynamicData) = Mixed.encode(mixed.u32, mixed.u128, mixed.a32, mixed.s);
```

0 comments on commit bfbade3

Please sign in to comment.