Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jun 4, 2024
1 parent 1bc3846 commit cb063e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarn-project/aztec.js/src/utils/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export async function waitForAccountSynch(
address: CompleteAddress,
{ interval, timeout }: WaitOpts = DefaultWaitOpts,
): Promise<void> {
const publicKey = address.publicKeys.masterIncomingViewingPublicKey.toString();
const accountAddress = address.address.toString();
await retryUntil(
async () => {
const status = await pxe.getSyncStatus();
const accountSynchedToBlock = status.notes[publicKey];
const accountSynchedToBlock = status.notes[accountAddress];
if (typeof accountSynchedToBlock === 'undefined') {
return false;
} else {
Expand Down

0 comments on commit cb063e5

Please sign in to comment.