Skip to content

Commit

Permalink
Merge branch 'main' into merge-main
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericdelab committed Aug 6, 2024
2 parents e61c91f + fa136e7 commit ff66e66
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions client/src/dojo/setup.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { DojoConfig } from "@dojoengine/core";
import { getSyncEntities } from "@dojoengine/state";
import { createClientComponents } from "./createClientComponents";
import { createSystemCalls } from "./createSystemCalls";
import { setupNetwork } from "./setupNetwork";
import { createUpdates } from "./createUpdates";
import { getSyncEntities } from "@dojoengine/state";
import { DojoConfig } from "@dojoengine/core";
import { setupNetwork } from "./setupNetwork";

export type SetupResult = Awaited<ReturnType<typeof setup>>;

Expand All @@ -14,7 +14,20 @@ export async function setup({ ...config }: DojoConfig) {
const updates = await createUpdates();

// fetch all existing entities from torii
const sync = await getSyncEntities(network.toriiClient, network.contractComponents as any, [], 1000);
const sync = await getSyncEntities(
network.toriiClient,
network.contractComponents as any,
[
{
Keys: {
keys: [],
pattern_matching: "VariableLen",
models: [],
},
},
],
1000,
);

return {
network,
Expand Down

0 comments on commit ff66e66

Please sign in to comment.