We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b4650a commit ab51c3dCopy full SHA for ab51c3d
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@snapshot-labs/snapshot.js",
3
- "version": "0.11.21",
+ "version": "0.11.22",
4
"repository": "snapshot-labs/snapshot.js",
5
"license": "MIT",
6
"main": "dist/snapshot.cjs.js",
src/sign/index.ts
@@ -83,7 +83,7 @@ export default class Client {
83
...domain
84
};
85
// @ts-ignore
86
- if (window?.ethereum?.isTrust) {
+ if (typeof window !== 'undefined' && window.ethereum?.isTrust) {
87
domainData.chainId = (await signer.provider.getNetwork()).chainId;
88
}
89
const data: any = { domain: domainData, types, message };
0 commit comments