@permissionless-technologies/upp-sdk 0.4.9 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -187,6 +187,7 @@ function UPPAccountProvider({
187
187
  return () => {
188
188
  cancelled = true;
189
189
  if (noteStoreUnsub) noteStoreUnsub();
190
+ syncPromiseRef.current = null;
190
191
  };
191
192
  }, [ethAddress, cryptoReady, chainId, publicClientProp]);
192
193
  const persistNotes = useCallback(
@@ -486,6 +487,7 @@ function UPPAccountProvider({
486
487
  const noteOwnerHash = BigInt("0x" + raw.slice(16, 80));
487
488
  const encryptedPayload = raw.slice(80);
488
489
  if (noteOwnerHash !== masterKeys.ownerHash) {
490
+ console.log(`[syncNotes] ownerHash mismatch: note=${noteOwnerHash.toString(16).slice(0, 16)}\u2026 ours=${masterKeys.ownerHash.toString(16).slice(0, 16)}\u2026`);
489
491
  skippedOwner++;
490
492
  continue;
491
493
  }
@@ -521,7 +523,7 @@ function UPPAccountProvider({
521
523
  ]);
522
524
  const expectedHex = toHex(expectedCommitment, { size: 32 });
523
525
  if (expectedHex.toLowerCase() !== candidate.commitment.toLowerCase()) {
524
- console.warn("[syncNotes] Commitment mismatch, skipping");
526
+ console.warn(`[syncNotes] Commitment mismatch: expected=${expectedHex.slice(0, 16)}\u2026 got=${candidate.commitment.slice(0, 16)}\u2026`);
525
527
  continue;
526
528
  }
527
529
  const newNote = {