diff --git a/yarn-project/circuit-types/src/interfaces/sync-status.ts b/yarn-project/circuit-types/src/interfaces/sync-status.ts index 75770ffe14b6..0e453b41bfde 100644 --- a/yarn-project/circuit-types/src/interfaces/sync-status.ts +++ b/yarn-project/circuit-types/src/interfaces/sync-status.ts @@ -2,6 +2,6 @@ export type SyncStatus = { /** Up to which block has been synched for blocks and txs. */ blocks: number; - /** Up to which block has been synched for notes, indexed by each public key being monitored. */ + /** Up to which block has been synched for notes, indexed by each account address being monitored. */ notes: Record; }; diff --git a/yarn-project/end-to-end/src/benchmarks/utils.ts b/yarn-project/end-to-end/src/benchmarks/utils.ts index f761ada9c322..d2925adaede9 100644 --- a/yarn-project/end-to-end/src/benchmarks/utils.ts +++ b/yarn-project/end-to-end/src/benchmarks/utils.ts @@ -129,9 +129,7 @@ export async function waitNewPXESynced( */ export async function waitRegisteredAccountSynced(pxe: PXE, secretKey: Fr, partialAddress: PartialAddress) { const l2Block = await pxe.getBlockNumber(); - const masterIncomingViewingPublicKey = (await pxe.registerAccount(secretKey, partialAddress)).publicKeys - .masterIncomingViewingPublicKey; - const isAccountSynced = async () => - (await pxe.getSyncStatus()).notes[masterIncomingViewingPublicKey.toString()] === l2Block; + const accountAddress = (await pxe.registerAccount(secretKey, partialAddress)).address; + const isAccountSynced = async () => (await pxe.getSyncStatus()).notes[accountAddress.toString()] === l2Block; await retryUntil(isAccountSynced, 'pxe-notes-sync'); }