@snapshot-labs/snapshot.js 0.14.18 → 0.14.19

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.
@@ -3889,15 +3889,13 @@ function getEnsSpaceController(id_1, network_1) {
3889
3889
  return __awaiter(this, arguments, void 0, function* (id, network, options = {}) {
3890
3890
  const spaceUri = yield getSpaceUri(id, network, options);
3891
3891
  if (spaceUri) {
3892
- let isUriAddress = address.isAddress(spaceUri);
3893
- if (isUriAddress)
3894
- return spaceUri;
3892
+ if (address.isAddress(spaceUri))
3893
+ return address.getAddress(spaceUri);
3895
3894
  const uriParts = spaceUri.split('/');
3896
3895
  const position = uriParts.includes('testnet') ? 5 : 4;
3897
3896
  const address$1 = uriParts[position];
3898
- isUriAddress = address.isAddress(address$1);
3899
- if (isUriAddress)
3900
- return address$1;
3897
+ if (address.isAddress(address$1))
3898
+ return address.getAddress(address$1);
3901
3899
  }
3902
3900
  return yield getEnsOwner(id, network, options);
3903
3901
  });
@@ -3879,15 +3879,13 @@ function getEnsSpaceController(id_1, network_1) {
3879
3879
  return __awaiter(this, arguments, void 0, function* (id, network, options = {}) {
3880
3880
  const spaceUri = yield getSpaceUri(id, network, options);
3881
3881
  if (spaceUri) {
3882
- let isUriAddress = isAddress(spaceUri);
3883
- if (isUriAddress)
3884
- return spaceUri;
3882
+ if (isAddress(spaceUri))
3883
+ return getAddress(spaceUri);
3885
3884
  const uriParts = spaceUri.split('/');
3886
3885
  const position = uriParts.includes('testnet') ? 5 : 4;
3887
3886
  const address = uriParts[position];
3888
- isUriAddress = isAddress(address);
3889
- if (isUriAddress)
3890
- return address;
3887
+ if (isAddress(address))
3888
+ return getAddress(address);
3891
3889
  }
3892
3890
  return yield getEnsOwner(id, network, options);
3893
3891
  });