@zkp2p/sdk 0.1.0-rc.3 → 0.1.0-rc.4

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.
package/dist/index.cjs CHANGED
@@ -7745,7 +7745,7 @@ var _Zkp2pClient = class _Zkp2pClient {
7745
7745
  resolveEscrowAddressOrThrow(escrowAddress, depositId, methodName, options) {
7746
7746
  const resolved = escrowAddress ?? this.parseEscrowAddressFromCompositeDepositId(depositId);
7747
7747
  if (resolved) return resolved;
7748
- if (options?.preferV2) {
7748
+ if (options?.preferV2 !== void 0) {
7749
7749
  return this.resolveEscrowContext({ preferV2: options.preferV2 }).address;
7750
7750
  }
7751
7751
  throw new Error(`${methodName} requires escrowAddress or composite depositId`);
@@ -8098,7 +8098,7 @@ var _Zkp2pClient = class _Zkp2pClient {
8098
8098
  if (fromEscrow) return fromEscrow;
8099
8099
  }
8100
8100
  if (options?.intentHash) {
8101
- const preferV2 = options.preferV2 ?? false;
8101
+ const preferV2 = options.preferV2 ?? this._router.defaultPreferV2;
8102
8102
  const primaryAddress = preferV2 ? this.orchestratorV2Address : this.legacyOrchestratorAddress;
8103
8103
  const secondaryAddress = preferV2 ? this.legacyOrchestratorAddress : this.orchestratorV2Address;
8104
8104
  const primaryContext = this.getOrchestratorContextByAddress(primaryAddress);