Skip to content

Commit a19777b

Browse files
committed
refactor(custom-auth): clean up comments and formatting in custom auth tests
1 parent 11178a5 commit a19777b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

e2e/src/tickets/custom-auth.spec.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe('Custom Auth Frontend Logic', () => {
6262
// ============================================================
6363
const validationIpfsCid = 'QmP3ZoTSGQ2P9cAZ4pBUjmPC34xbJZFRoWnCXT2SdHA2uD';
6464

65-
// Step 3: Mint PKPs for Users - Mint PKPs for your users using the custom auth method
65+
// Step 3: Mint PKPs for Users - Mint PKPs for your users using the custom auth method
6666
// type and validation CID.
6767
// Each user gets their own unique PKP tied to your dApp's authentication system.
6868
const litClient = await createLitClient({ network: nagaDev });
@@ -157,16 +157,14 @@ describe('Custom Auth Frontend Logic', () => {
157157

158158
const signatures = await litClient.chain.raw.pkpSign({
159159
chain: 'ethereum',
160-
signingScheme: 'EcdsaK256Sha256', // From dropdown
160+
signingScheme: 'EcdsaK256Sha256',
161161
pubKey: alicePkpPublicKey,
162162
authContext: aliceAuthContext,
163-
toSign: messageBytes, // UTF-8 encoded message
164-
165-
// 💰 Optional: Set custom maximum price you're willing to pay
166-
// userMaxPrice: BigInt("1000000000000000"), // 0.001 ETH in Wei
167-
// If not specified, Lit Protocol will automatically find the most optimised price
163+
toSign: messageBytes,
168164
});
169165

170166
console.log('signatures:', signatures);
167+
168+
expect(signatures).toBeDefined();
171169
});
172170
});

0 commit comments

Comments
 (0)