Skip to content

Commit ba67f78

Browse files
author
Josh Long
committed
dev: expose options for tinny env
1 parent 622d323 commit ba67f78

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/tinny/src/lib/tinny-environment.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,11 @@ export class TinnyEnvironment {
110110
| LitContractResolverContext
111111
| undefined;
112112

113-
constructor(network?: LIT_TESTNET) {
113+
private _config: { useRLI: boolean };
114+
constructor(network?: LIT_TESTNET, config?: { useRLI: boolean }) {
114115
// -- setup networkj
115116
this.network = network || this.processEnvs.NETWORK;
116-
117+
this._config = config ?? { useRLI: true };
117118
if (Object.values(LIT_TESTNET).indexOf(this.network) === -1) {
118119
throw new Error(
119120
`Invalid network environment. Please use one of ${Object.values(
@@ -391,7 +392,10 @@ export class TinnyEnvironment {
391392
}
392393

393394
await this.setupLitNodeClient();
394-
await this.setupSuperCapacityDelegationAuthSig();
395+
if (this._config.useRLI) {
396+
await this.setupSuperCapacityDelegationAuthSig();
397+
}
398+
395399
await this.setupBareEthAuthSig();
396400
} catch (e) {
397401
const err = toErrorWithMessage(e);

0 commit comments

Comments
 (0)