Skip to content

Commit 08ba1d6

Browse files
committed
ledger-amino: process?.env
1 parent 6bb9bcf commit 08ba1d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ledger-amino/src/testutils.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ export const faucet = {
99
};
1010

1111
export function ledgerEnabled(): boolean {
12-
return !!process.env.LEDGER_ENABLED;
12+
return !!globalThis.process?.env.LEDGER_ENABLED;
1313
}
1414

1515
export function simappEnabled(): boolean {
16-
return !!process.env.SIMAPP47_ENABLED || !!process.env.SIMAPP50_ENABLED;
16+
return !!(globalThis.process?.env.SIMAPP47_ENABLED || globalThis.process?.env.SIMAPP50_ENABLED);
1717
}
1818

1919
export const simapp = {

0 commit comments

Comments
 (0)