@snapshot-labs/snapshot.js 0.12.60 → 0.12.62

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.
@@ -5001,7 +5001,8 @@ function isValidNetwork(network) {
5001
5001
  return !!networks[network];
5002
5002
  }
5003
5003
  function isValidAddress(address$1) {
5004
- return address.isAddress(address$1) && address$1 !== EMPTY_ADDRESS;
5004
+ return (address$1 !== EMPTY_ADDRESS &&
5005
+ (address.isAddress(address$1) || isStarknetAddress(address$1)));
5005
5006
  }
5006
5007
  function isValidSnapshot(snapshot, network) {
5007
5008
  return (snapshot === 'latest' ||
@@ -4991,7 +4991,8 @@ function isValidNetwork(network) {
4991
4991
  return !!networks[network];
4992
4992
  }
4993
4993
  function isValidAddress(address) {
4994
- return isAddress(address) && address !== EMPTY_ADDRESS;
4994
+ return (address !== EMPTY_ADDRESS &&
4995
+ (isAddress(address) || isStarknetAddress(address)));
4995
4996
  }
4996
4997
  function isValidSnapshot(snapshot, network) {
4997
4998
  return (snapshot === 'latest' ||