Skip to content

Commit c17d4d8

Browse files
author
Josh Long
committed
ref: type updates for session signatures
1 parent b0ef22a commit c17d4d8

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

packages/e2e-tests/src/tests/Delegation.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('Delegation', () => {
8181
});
8282

8383
const res = await devEnv.litNodeClient?.executeJs({
84-
sessionSigs: bobPkpSessionSigs,
84+
sessionSigs: bobPkpSessionSigs!,
8585
code: `(async () => {
8686
const sigShare = await LitActions.signEcdsa({
8787
toSign: dataToSign,
@@ -136,7 +136,7 @@ describe('Delegation', () => {
136136

137137
// 5. Bob can now execute JS code using the capacity credits NFT
138138
const res = await devEnv.litNodeClient?.executeJs({
139-
sessionSigs: bobsSessionSigs,
139+
sessionSigs: bobsSessionSigs!,
140140
code: `(async () => {
141141
const sigShare = await LitActions.signEcdsa({
142142
toSign: dataToSign,

packages/e2e-tests/src/tests/SessionSigs.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ const executeJsClaimKeys = async (
301301
]);
302302

303303
const res = await devEnv.litNodeClient?.executeJs({
304-
sessionSigs: litActionSessionSigs,
304+
sessionSigs: litActionSessionSigs!,
305305
code: `(async () => {
306306
Lit.Actions.claimKey({keyId: "foo"});
307307
Lit.Actions.claimKey({keyId: "bar"});
@@ -390,7 +390,7 @@ const executeJsClaimKey = async (
390390
const litActionSessionSigs = await generator(devEnv, alice);
391391

392392
const res = await devEnv.litNodeClient?.executeJs({
393-
sessionSigs: litActionSessionSigs,
393+
sessionSigs: litActionSessionSigs!,
394394
code: `(async () => {
395395
Lit.Actions.claimKey({keyId: "foo"});
396396
})();`,
@@ -481,7 +481,7 @@ const executeJsJSONResponse = async (
481481
const litActionSessionSigs = await generator(devEnv, alice);
482482

483483
const res = await devEnv.litNodeClient?.executeJs({
484-
sessionSigs: litActionSessionSigs,
484+
sessionSigs: litActionSessionSigs!,
485485
code: `(async () => {
486486
console.log('hello world')
487487
@@ -519,7 +519,7 @@ const executeJsSigning = async (
519519
]);
520520

521521
const res = await devEnv.litNodeClient?.executeJs({
522-
sessionSigs: litActionSessionSigs,
522+
sessionSigs: litActionSessionSigs!,
523523
code: `(async () => {
524524
const sigShare = await LitActions.signEcdsa({
525525
toSign: dataToSign,
@@ -552,7 +552,7 @@ const executeJsSigningParallel = async (
552552

553553
const fn = async () => {
554554
return await devEnv.litNodeClient?.executeJs({
555-
sessionSigs: litActionSessionSigs,
555+
sessionSigs: litActionSessionSigs!,
556556
code: `(async () => {
557557
const sigShare = await LitActions.signEcdsa({
558558
toSign: dataToSign,
@@ -653,7 +653,7 @@ const broadcastAndCollect = async (
653653
const litActionSessionSigs = await generator(devEnv, alice);
654654

655655
const res = await devEnv.litNodeClient?.executeJs({
656-
sessionSigs: litActionSessionSigs,
656+
sessionSigs: litActionSessionSigs!,
657657
code: `(async () => {
658658
let rand = Math.floor(Math.random() * 100);
659659
const resp = await Lit.Actions.broadcastAndCollect({
@@ -710,7 +710,7 @@ const decryptAndCombine = async (
710710
expect(!encryptRes.dataToEncryptHash).toBeDefined();
711711

712712
const res = await devEnv.litNodeClient?.executeJs({
713-
sessionSigs: litActionSessionSigs,
713+
sessionSigs: litActionSessionSigs!,
714714
code: `(async () => {
715715
const resp = await Lit.Actions.decryptAndCombine({
716716
accessControlConditions,
@@ -745,7 +745,7 @@ const signAndCombine = async (
745745
const litActionSessionSigs = await generator(devEnv, alice);
746746

747747
const res = await devEnv.litNodeClient?.executeJs({
748-
sessionSigs: litActionSessionSigs,
748+
sessionSigs: litActionSessionSigs!,
749749
code: `(async () => {
750750
const sigShare = await LitActions.signAndCombineEcdsa({
751751
toSign: dataToSign,

packages/e2e-tests/src/tests/WrappedKeys.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ describe('Wrapped Keys', () => {
668668

669669
devEnv.litNodeClient
670670
?.executeJs({
671-
sessionSigs: pkpSessionSigsSigning,
671+
sessionSigs: pkpSessionSigsSigning!,
672672
ipfsId: LIT_ACTION_CID_REPOSITORY.signTransaction.evm,
673673
jsParams: {
674674
ciphertext,

0 commit comments

Comments
 (0)