Conversation
🦋 Changeset detectedLatest commit: 449bde4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 28 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
b479643 to
f29829c
Compare
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
9348d50 to
26df50f
Compare
Co-authored-by: Kevin Ingersoll <kingersoll@gmail.com>
4189c86 to
14582af
Compare
|
|
||
| - You can adjust `createClientComponents.ts` to either override contract components or add client-only components. | ||
| - If you are using chains other than foundry/anvil and lattice testnet, you can add them in `getNetworkConfig.ts` | ||
| - `createSystemCalls` represents how the client talks to the system contracts via our `worldSend` helper |
There was a problem hiding this comment.
fwiw we still have and use createSystemCalls, we just go through worldContract.write instead
|
|
||
| - `keySchema`, the key used to find entries | ||
| - `schema`, the value in the entry (soon to be renamed to `valueSchema`) | ||
| - `valueSchema`, the value in the entry |
| keySchema?: Record<string, KeySchema<StaticUserTypes>>; | ||
| /** Table's column names mapped to their types. Table name's 1st letter should be lowercase. */ | ||
| schema: SchemaConfig<UserTypes>; | ||
| /** Table's field names mapped to their types. Table name's 1st letter should be lowercase. */ |
There was a problem hiding this comment.
the second sentence here is weird, should this be "field name's first letter"?
| // to allow using the table before it is registered. This is because `getRecord` passes the valueSchema | ||
| // to store, while `getField` loads it from storage. Remove this once we have support for passing the | ||
| // schema in `getField` too. (See https://github.com/latticexyz/mud/issues/444) | ||
| // valueSchema in `getField` too. (See https://github.com/latticexyz/mud/issues/444) |
There was a problem hiding this comment.
I think getField now supports passing in value schema (or field layout now) so is this comment/workaround still relevant?
There was a problem hiding this comment.
true, will remove this in a followup

Fixes #1129