From ba67f7859873de135a62cf443abe3c3e9af8aeec Mon Sep 17 00:00:00 2001 From: Josh Long Date: Tue, 17 Sep 2024 10:48:54 -0400 Subject: [PATCH] dev: expose options for tinny env --- packages/tinny/src/lib/tinny-environment.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/tinny/src/lib/tinny-environment.ts b/packages/tinny/src/lib/tinny-environment.ts index 390f1f0e6..6817ca6f9 100644 --- a/packages/tinny/src/lib/tinny-environment.ts +++ b/packages/tinny/src/lib/tinny-environment.ts @@ -110,10 +110,11 @@ export class TinnyEnvironment { | LitContractResolverContext | undefined; - constructor(network?: LIT_TESTNET) { + private _config: { useRLI: boolean }; + constructor(network?: LIT_TESTNET, config?: { useRLI: boolean }) { // -- setup networkj this.network = network || this.processEnvs.NETWORK; - + this._config = config ?? { useRLI: true }; if (Object.values(LIT_TESTNET).indexOf(this.network) === -1) { throw new Error( `Invalid network environment. Please use one of ${Object.values( @@ -391,7 +392,10 @@ export class TinnyEnvironment { } await this.setupLitNodeClient(); - await this.setupSuperCapacityDelegationAuthSig(); + if (this._config.useRLI) { + await this.setupSuperCapacityDelegationAuthSig(); + } + await this.setupBareEthAuthSig(); } catch (e) { const err = toErrorWithMessage(e);