Skip to content

Commit 0453483

Browse files
committed
fmt
1 parent 5515e15 commit 0453483

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

local-tests/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export {
1414
getEoaSessionSigs,
1515
getLitActionSessionSigs,
1616
getPkpSessionSigs,
17-
AccessControlConditions
17+
AccessControlConditions,
1818
};
1919

2020
// Usage

local-tests/setup/tinny-environment.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class TinnyEnvironment {
3737
DEBUG: process.env['DEBUG'] === 'true',
3838
REQUEST_PER_KILOSECOND:
3939
parseInt(process.env['REQUEST_PER_KILOSECOND']) ||
40-
(process.env['NETWORK'] as LIT_NETWORK_VALUES) === 'datil-dev'
40+
(process.env['NETWORK'] as LIT_NETWORK_VALUES) === 'datil-dev'
4141
? 1
4242
: 200,
4343
LIT_RPC_URL: process.env['LIT_RPC_URL'],
@@ -101,8 +101,9 @@ export class TinnyEnvironment {
101101
private _shivaClient: ShivaClient = new ShivaClient();
102102
private _contractContext: LitContractContext | LitContractResolverContext;
103103

104-
constructor(override?: Partial<ProcessEnvs> & { customNetworkContext?: any }) {
105-
104+
constructor(
105+
override?: Partial<ProcessEnvs> & { customNetworkContext?: any }
106+
) {
106107
this.customNetworkContext = override?.customNetworkContext;
107108

108109
// Merge default processEnvs with custom overrides
@@ -124,7 +125,8 @@ export class TinnyEnvironment {
124125

125126
if (Object.values(LIT_NETWORK).indexOf(this.network) === -1) {
126127
throw new Error(
127-
`Invalid network environment ${this.network
128+
`Invalid network environment ${
129+
this.network
128130
}. Please use one of ${Object.values(LIT_NETWORK)}`
129131
);
130132
}
@@ -247,7 +249,8 @@ export class TinnyEnvironment {
247249

248250
if (this.network === LIT_NETWORK.Custom || centralisation === 'unknown') {
249251
const networkContext =
250-
this.customNetworkContext || (this?.testnet?.ContractContext ?? this._contractContext);
252+
this.customNetworkContext ||
253+
(this?.testnet?.ContractContext ?? this._contractContext);
251254
this.litNodeClient = new LitNodeClient({
252255
litNetwork: LIT_NETWORK.Custom,
253256
rpcUrl: this.rpc,
@@ -385,7 +388,8 @@ export class TinnyEnvironment {
385388

386389
await this.testnet.getTestnetConfig();
387390
} else if (this.network === LIT_NETWORK.Custom) {
388-
const context = this.customNetworkContext || await import('./networkContext.json');
391+
const context =
392+
this.customNetworkContext || (await import('./networkContext.json'));
389393
this._contractContext = context;
390394
}
391395

0 commit comments

Comments
 (0)