Skip to content

Commit

Permalink
Add inputs to RPC serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Sep 26, 2024
1 parent 2a47209 commit 643639f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ describe('Prover agent <-> queue integration', () => {
await queue.stop();
});

// TODO: This test hangs instead of failing when the Inputs are not registered on the RPC wrapper
it.each(Object.entries(makeInputs))('can call %s over JSON-RPC', async (fnName, makeInputs) => {
const resp = await queue[fnName as keyof ServerCircuitProver](makeInputs() as any);
expect(resp).toBeDefined();
Expand Down
3 changes: 3 additions & 0 deletions yarn-project/prover-client/src/prover-agent/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
BlockMergeRollupInputs,
BlockRootOrBlockMergePublicInputs,
BlockRootRollupInputs,
EmptyBlockRootRollupInputs,
EthAddress,
Fr,
Header,
Expand Down Expand Up @@ -68,6 +69,7 @@ export function createProvingJobSourceServer(queue: ProvingJobSource): JsonRpcSe
BlockRootOrBlockMergePublicInputs,
BlockMergeRollupInputs,
BlockRootRollupInputs,
EmptyBlockRootRollupInputs,
},
{},
);
Expand Down Expand Up @@ -109,6 +111,7 @@ export function createProvingJobSourceClient(
BlockRootOrBlockMergePublicInputs,
BlockMergeRollupInputs,
BlockRootRollupInputs,
EmptyBlockRootRollupInputs,
},
{},
false,
Expand Down

0 comments on commit 643639f

Please sign in to comment.