@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.
@@ -188,6 +188,7 @@ function UPPAccountProvider({
188
188
  return () => {
189
189
  cancelled = true;
190
190
  if (noteStoreUnsub) noteStoreUnsub();
191
+ syncPromiseRef.current = null;
191
192
  };
192
193
  }, [ethAddress, cryptoReady, chainId, publicClientProp]);
193
194
  const persistNotes = react.useCallback(
@@ -487,6 +488,7 @@ function UPPAccountProvider({
487
488
  const noteOwnerHash = BigInt("0x" + raw.slice(16, 80));
488
489
  const encryptedPayload = raw.slice(80);
489
490
  if (noteOwnerHash !== masterKeys.ownerHash) {
491
+ console.log(`[syncNotes] ownerHash mismatch: note=${noteOwnerHash.toString(16).slice(0, 16)}\u2026 ours=${masterKeys.ownerHash.toString(16).slice(0, 16)}\u2026`);
490
492
  skippedOwner++;
491
493
  continue;
492
494
  }
@@ -522,7 +524,7 @@ function UPPAccountProvider({
522
524
  ]);
523
525
  const expectedHex = viem.toHex(expectedCommitment, { size: 32 });
524
526
  if (expectedHex.toLowerCase() !== candidate.commitment.toLowerCase()) {
525
- console.warn("[syncNotes] Commitment mismatch, skipping");
527
+ console.warn(`[syncNotes] Commitment mismatch: expected=${expectedHex.slice(0, 16)}\u2026 got=${candidate.commitment.slice(0, 16)}\u2026`);
526
528
  continue;
527
529
  }
528
530
  const newNote = {