Skip to content

Commit 9ad04d0

Browse files
committed
chore: remove bare authSig from test
1 parent 61c45b5 commit 9ad04d0

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

local-tests/setup/tinny-environment.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export class TinnyEnvironment {
8787
public contractsClient: LitContracts;
8888
public rpc: string;
8989
public superCapacityDelegationAuthSig: AuthSig;
90-
public bareEthAuthSig: AuthSig;
9190

9291
public testnet: TestnetClient | undefined;
9392
//=========== PRIVATE MEMBERS ===========
@@ -397,7 +396,6 @@ export class TinnyEnvironment {
397396

398397
await this.setupLitNodeClient();
399398
await this.setupSuperCapacityDelegationAuthSig();
400-
await this.setupBareEthAuthSig();
401399
} catch (e) {
402400
const err = toErrorWithMessage(e);
403401
console.log(
@@ -408,34 +406,6 @@ export class TinnyEnvironment {
408406
}
409407
}
410408

411-
/**
412-
* Setup bare eth auth sig to test access control and decryption
413-
*/
414-
async setupBareEthAuthSig() {
415-
const privateKey = await this.getAvailablePrivateKey();
416-
try {
417-
const provider = new ethers.providers.JsonRpcBatchProvider(this.rpc);
418-
const wallet = new ethers.Wallet(privateKey.privateKey, provider);
419-
420-
const toSign = await createSiweMessage({
421-
walletAddress: wallet.address,
422-
nonce: await this.litNodeClient.getLatestBlockhash(),
423-
expiration: new Date(
424-
Date.now() + 29 * 24 * 60 * 60 * 1000
425-
).toISOString(),
426-
litNodeClient: this.litNodeClient,
427-
});
428-
429-
this.bareEthAuthSig = await generateAuthSig({
430-
signer: wallet,
431-
toSign,
432-
});
433-
} finally {
434-
// @ts-expect-error
435-
this.releasePrivateKeyFromUser(privateKey);
436-
}
437-
}
438-
439409
//============= SHIVA ENDPOINTS =============
440410
/**
441411
* Will stop the testnet that is being used in the test run.

0 commit comments

Comments
 (0)