@unicitylabs/sphere-sdk 0.16.0-dev.1 → 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.
@@ -933,7 +933,7 @@ var NETWORKS = {
933
933
  // old goggregator testnet spoke the removed v1 protocol — a v2 engine cannot
934
934
  // run against it. 'testnet2' stays as an alias of the same configuration.
935
935
  testnet: {
936
- name: "Testnet2",
936
+ name: "Testnet",
937
937
  networkId: 4,
938
938
  // v2 state-transition gateway (networkId 4 comes from the trust base). apiKey is env-injected.
939
939
  aggregatorUrl: "https://gateway.testnet2.unicity.network",
@@ -943,7 +943,7 @@ var NETWORKS = {
943
943
  tokenRegistryUrl: "https://raw.githubusercontent.com/unicitynetwork/unicity-ids/refs/heads/main/unicity-ids.testnet2.json"
944
944
  },
945
945
  testnet2: {
946
- name: "Testnet2",
946
+ name: "Testnet",
947
947
  networkId: 4,
948
948
  // v2 state-transition gateway (networkId 4 comes from the trust base). apiKey is env-injected.
949
949
  aggregatorUrl: "https://gateway.testnet2.unicity.network",
@@ -16757,7 +16757,8 @@ var Sphere = class _Sphere {
16757
16757
  }
16758
16758
  const progress = options.onProgress;
16759
16759
  logger.debug("Sphere", "Starting import...");
16760
- const needsClear = _Sphere.liveOn(options.storage).length > 0 || await _Sphere.exists(options.storage);
16760
+ const liveHere = _Sphere.liveOn(options.storage).some((s) => s._storage === options.storage);
16761
+ const needsClear = liveHere || await _Sphere.exists(options.storage);
16761
16762
  if (needsClear) {
16762
16763
  progress?.({ step: "clearing", message: "Clearing previous wallet data..." });
16763
16764
  logger.debug("Sphere", "Clearing existing wallet data...");