From c3b47e67e760aea5c841985ab4d44fb36cff1dae Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 13 Jul 2023 02:53:23 -0400 Subject: [PATCH] fix: add optimisticUpdateCallback to client factory --- src/client/index.ts | 4 ++++ 1 file changed, 4 insertions(+) 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, }); }