From 0eb2d88f145d2989b5fd73bb8a5e9238427efea5 Mon Sep 17 00:00:00 2001 From: Karandeep Singh Date: Fri, 20 Sep 2024 22:00:02 -0400 Subject: [PATCH] chores: type fixs --- .../smart-session/src/core/utils/WalletConnectCosigner.ts | 2 +- .../smart-session/tests/WalletConnectCosigner.test.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/experimental/smart-session/src/core/utils/WalletConnectCosigner.ts b/packages/experimental/smart-session/src/core/utils/WalletConnectCosigner.ts index a1eb23c2df..38fce565df 100644 --- a/packages/experimental/smart-session/src/core/utils/WalletConnectCosigner.ts +++ b/packages/experimental/smart-session/src/core/utils/WalletConnectCosigner.ts @@ -22,7 +22,7 @@ export class CoSignerApiError extends Error { export async function sendCoSignerRequest< TRequest, TResponse, - TQueryParams extends Record = Record + TQueryParams extends Record >({ url, request, diff --git a/packages/experimental/smart-session/tests/WalletConnectCosigner.test.ts b/packages/experimental/smart-session/tests/WalletConnectCosigner.test.ts index 65478ea8aa..51091bff63 100644 --- a/packages/experimental/smart-session/tests/WalletConnectCosigner.test.ts +++ b/packages/experimental/smart-session/tests/WalletConnectCosigner.test.ts @@ -56,7 +56,7 @@ describe('CoSigner API Tests', () => { const response = await sendCoSignerRequest({ url: mockUrl, - data: mockAddPermissionRequest, + request: mockAddPermissionRequest, headers: mockHeaders, queryParams: { projectId } }) @@ -70,7 +70,7 @@ describe('CoSigner API Tests', () => { await expect( sendCoSignerRequest({ url: mockUrl, - data: mockAddPermissionRequest, + request: mockAddPermissionRequest, headers: mockHeaders, queryParams: { projectId } }) @@ -83,7 +83,7 @@ describe('CoSigner API Tests', () => { await expect( sendCoSignerRequest({ url: mockUrl, - data: mockAddPermissionRequest, + request: mockAddPermissionRequest, headers: mockHeaders, queryParams: { projectId } })