@snapshot-labs/snapshot.js 0.12.61 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.12.61",
3
+ "version": "0.12.62",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
package/src/utils.ts CHANGED
@@ -794,7 +794,10 @@ function isValidNetwork(network: string) {
794
794
  }
795
795
 
796
796
  function isValidAddress(address: string) {
797
- return isAddress(address) && address !== EMPTY_ADDRESS;
797
+ return (
798
+ address !== EMPTY_ADDRESS &&
799
+ (isAddress(address) || isStarknetAddress(address))
800
+ );
798
801
  }
799
802
 
800
803
  function isValidSnapshot(snapshot: number | string, network: string) {