Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
y77cao committed Sep 19, 2023
1 parent 9cea6ce commit 08b66fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/store-sync/src/recs/syncToRecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { singletonEntity } from "./singletonEntity";
import { SyncStep } from "../SyncStep";
import { Hex } from "viem";
import { encodeEntity } from "./encodeEntity";
import { KeySchema, ValueSchema, decodeValue, valueSchemaToFieldLayoutHex } from "@latticexyz/protocol-parser";
import { decodeValue, valueSchemaToFieldLayoutHex } from "@latticexyz/protocol-parser";
import IBaseWorldAbi from "@latticexyz/world/out/IBaseWorld.sol/IBaseWorld.abi.json";

type SyncToRecsOptions<TConfig extends StoreConfig = StoreConfig> = SyncOptions<TConfig> & {
Expand Down Expand Up @@ -76,7 +76,7 @@ export async function syncToRecs<TConfig extends StoreConfig = StoreConfig>({
// TODO make fieldLayout a table metadata field
const encodedFieldLayout = valueSchemaToFieldLayoutHex(components.FunctionSelectors.metadata.valueSchema);

const [selectorRecord, ,] = await publicClient.readContract<IBaseWorldAbi, string>({
const [selectorRecord, ,] = await publicClient.readContract({
address: address as Hex,
abi: IBaseWorldAbi,
functionName: "getRecord",
Expand Down

0 comments on commit 08b66fb

Please sign in to comment.