@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/dist/snapshot.cjs.js +2 -1
- package/dist/snapshot.esm.js +2 -1
- package/dist/snapshot.min.js +1 -1
- package/package.json +1 -1
- package/src/utils.ts +4 -1
package/package.json
CHANGED
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
|
|
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) {
|