From 191cdd738117cb3b94603f295fc725b9e0a941c1 Mon Sep 17 00:00:00 2001 From: Siddharth9890 Date: Mon, 20 Nov 2023 09:16:56 +0530 Subject: [PATCH] chore: everything working except get pdas --- src/pda/PDA.ts | 1 + test/pda.test.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pda/PDA.ts b/src/pda/PDA.ts index 6d193c4..95d35c5 100644 --- a/src/pda/PDA.ts +++ b/src/pda/PDA.ts @@ -55,6 +55,7 @@ export class PDA { try { return await this.sdk.PDAs_query({ filter, order, skip, take }); } catch (error) { + console.log(error); throw new Error(errorHandler(error)); } } diff --git a/test/pda.test.ts b/test/pda.test.ts index 577b5f7..a4c6861 100644 --- a/test/pda.test.ts +++ b/test/pda.test.ts @@ -70,7 +70,7 @@ describe('PDA TESTING', () => { it( 'pdas', async () => { - const { PDAs } = await api.pda.getPDAs({}); + const { PDAs } = await api.pda.getPDAs({ skip: 0, take: 10 }); expect(PDAs.length).toBeGreaterThanOrEqual(0); }, DEFAULT_TIMEOUT,