Skip to content

Commit

Permalink
remove address param
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvanipa committed Nov 8, 2023
1 parent 711be52 commit 945f3d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions packages/store-sync/src/recs/recsStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ export type RecsUpdatesHook = (
export function recsStorage<TConfig extends StoreConfig = StoreConfig>(
{
components,
address,
}: {
components: ReturnType<typeof defineInternalComponents> &
Record<string, RecsComponent<RecsSchema, StoreComponentMetadata>>;
config?: TConfig;
address: `0x${string}` | undefined;
},
recsAllUpdatesHook?: RecsUpdatesHook
): BlockLogsToStorageOptions<TConfig> {
Expand Down
4 changes: 1 addition & 3 deletions packages/store-sync/src/recs/syncToRecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ export async function syncToRecs<TConfig extends StoreConfig = StoreConfig>({

world.registerEntity({ id: singletonEntity });

// console.log("syncWithRecs", startBlock, address);

const storeSync = await createStoreSync({
storageAdapter: recsStorage({ components, config, address }, recsAllUpdatesHook),
storageAdapter: recsStorage({ components, config }, recsAllUpdatesHook),
config,
address,
publicClient,
Expand Down

0 comments on commit 945f3d7

Please sign in to comment.