diff --git a/src/client/index.ts b/src/client/index.ts index 238197a..b950081 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -2,16 +2,20 @@ import Client from "./client.js"; import Prover, { ProverRequestCallback } from "../prover.js"; import VerifyingProvider from "./verifyingProvider.js"; import Store from "#store.js"; +import { BaseClientOptions } from "#baseClient.js"; +import { OptimisticUpdateCallback } from "#types.js"; function createDefaultClient( proverHandler: ProverRequestCallback, rpcHandler: Function, + optimisticUpdateHandler: OptimisticUpdateCallback, ): Client { return new Client({ prover: new Prover(proverHandler), store: new Store(60 * 60), provider: VerifyingProvider, rpcHandler, + optimisticUpdateCallback: optimisticUpdateHandler, }); }