Skip to content

Commit 0232b45

Browse files
committed
SDK: Fix process not defined error
1 parent b33c1a3 commit 0232b45

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/thirdweb/src/utils/any-evm/zksync/constants.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ export const ZKSYNC_SINGLETON_FACTORY =
33
export const CONTRACT_DEPLOYER_ADDRESS =
44
"0x0000000000000000000000000000000000008006" as const;
55
export const KNOWN_CODES_STORAGE = "0x0000000000000000000000000000000000008004";
6-
export const PUBLISHED_PRIVATE_KEY = process
7-
? process.env.ZKSYNC_PUBLISHED_PRIVATE_KEY
8-
: undefined;
6+
export const PUBLISHED_PRIVATE_KEY =
7+
typeof process !== "undefined" && process && process.env
8+
? process.env.ZKSYNC_PUBLISHED_PRIVATE_KEY
9+
: undefined;
910

1011
export const singletonFactoryAbi = [
1112
"function deploy(bytes32,bytes32,bytes) external payable",

0 commit comments

Comments
 (0)