File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments