@unicitylabs/sphere-sdk 0.16.0-dev.2 → 0.16.0

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
@@ -16817,7 +16817,8 @@ var Sphere = class _Sphere {
16817
16817
  }
16818
16818
  const progress = options.onProgress;
16819
16819
  logger.debug("Sphere", "Starting import...");
16820
- const needsClear = _Sphere.liveOn(options.storage).length > 0 || await _Sphere.exists(options.storage);
16820
+ const liveHere = _Sphere.liveOn(options.storage).some((s) => s._storage === options.storage);
16821
+ const needsClear = liveHere || await _Sphere.exists(options.storage);
16821
16822
  if (needsClear) {
16822
16823
  progress?.({ step: "clearing", message: "Clearing previous wallet data..." });
16823
16824
  logger.debug("Sphere", "Clearing existing wallet data...");