From 2977dd26054e13a14260046f5eb9f7a45b9cecb3 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Fri, 1 Mar 2024 15:21:09 -0300 Subject: [PATCH] Fix serialization --- yarn-project/archiver/src/rpc/archiver_client.ts | 3 ++- yarn-project/archiver/src/rpc/archiver_server.ts | 3 ++- yarn-project/aztec-node/src/aztec-node/http_rpc_server.ts | 3 ++- yarn-project/pxe/src/pxe_http/pxe_http_server.ts | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/yarn-project/archiver/src/rpc/archiver_client.ts b/yarn-project/archiver/src/rpc/archiver_client.ts index d6635fbdcad..cec9f21801f 100644 --- a/yarn-project/archiver/src/rpc/archiver_client.ts +++ b/yarn-project/archiver/src/rpc/archiver_client.ts @@ -6,6 +6,7 @@ import { L1ToL2Message, L2Block, L2BlockL2Logs, + NullifierMembershipWitness, TxReceipt, } from '@aztec/circuit-types'; import { EthAddress, Fr } from '@aztec/circuits.js'; @@ -27,7 +28,7 @@ export const createArchiverClient = (url: string, fetch = makeFetch([1, 2, 3], t L2Block, L2BlockL2Logs, }, - { TxReceipt }, + { TxReceipt, NullifierMembershipWitness }, false, 'archiver', fetch, diff --git a/yarn-project/archiver/src/rpc/archiver_server.ts b/yarn-project/archiver/src/rpc/archiver_server.ts index 48e7463cbc9..600a4316503 100644 --- a/yarn-project/archiver/src/rpc/archiver_server.ts +++ b/yarn-project/archiver/src/rpc/archiver_server.ts @@ -6,6 +6,7 @@ import { L1ToL2Message, L2Block, L2BlockL2Logs, + NullifierMembershipWitness, TxEffect, TxReceipt, } from '@aztec/circuit-types'; @@ -34,7 +35,7 @@ export function createArchiverRpcServer(archiverService: Archiver): JsonRpcServe L2BlockL2Logs, TxEffect, }, - { TxReceipt }, + { TxReceipt, NullifierMembershipWitness }, ['start', 'stop'], ); } diff --git a/yarn-project/aztec-node/src/aztec-node/http_rpc_server.ts b/yarn-project/aztec-node/src/aztec-node/http_rpc_server.ts index 213478e41d0..845d61b2916 100644 --- a/yarn-project/aztec-node/src/aztec-node/http_rpc_server.ts +++ b/yarn-project/aztec-node/src/aztec-node/http_rpc_server.ts @@ -7,6 +7,7 @@ import { L2Block, L2BlockL2Logs, LogId, + NullifierMembershipWitness, SiblingPath, Tx, TxEffect, @@ -43,7 +44,7 @@ export function createAztecNodeRpcServer(node: AztecNode) { SiblingPath, L1ToL2MessageAndIndex, }, - { Tx, TxReceipt, L2BlockL2Logs }, + { Tx, TxReceipt, L2BlockL2Logs, NullifierMembershipWitness }, // disable methods not part of the AztecNode interface ['start', 'stop'], ); diff --git a/yarn-project/pxe/src/pxe_http/pxe_http_server.ts b/yarn-project/pxe/src/pxe_http/pxe_http_server.ts index 9e03421c649..8aa21824401 100644 --- a/yarn-project/pxe/src/pxe_http/pxe_http_server.ts +++ b/yarn-project/pxe/src/pxe_http/pxe_http_server.ts @@ -9,6 +9,7 @@ import { L2BlockL2Logs, LogId, Note, + NullifierMembershipWitness, PXE, Tx, TxEffect, @@ -51,7 +52,7 @@ export function createPXERpcServer(pxeService: PXE): JsonRpcServer { TxEffect, LogId, }, - { Tx, TxReceipt, L2BlockL2Logs }, + { Tx, TxReceipt, L2BlockL2Logs, NullifierMembershipWitness }, ['start', 'stop'], ); }