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 committed Sep 18, 2023
1 parent fcbaa3d commit eabf4f4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .changeset/hip-tables-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@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 eabf4f4

Please sign in to comment.