Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/pda #2

Merged
merged 28 commits into from
Nov 21, 2023
Merged

Feat/pda #2

merged 28 commits into from
Nov 21, 2023

Conversation

Siddharth9890
Copy link
Collaborator

No description provided.

src/pda/PDA.ts Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name files always lowecase.

src/pda/PDA.ts Outdated
*/
async getIssuedPDAs({ filter, order, skip, take }: PDAFilter) {
try {
return await this.sdk.issuedPDAs_query({ filter, order, skip, take });
} catch (error: any) {
console.log(error);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove consoles

src/pda/PDA.ts Outdated
return (await this.sdk.issuedPDAsCount_query({ filter })).issuedPDAsCount;
} catch (error: any) {
throw new Error(error?.message);
error;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this?

test/pda.test.ts Outdated
expect(PDA?.dataAsset?.title).toEqual("test");
});
describe("PDA TESTING", () => {
// it(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented code.

test/pda.test.ts Outdated
DEFAULT_TIMEOUT
);

// it(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented code

test/pda.test.ts Outdated
'create pda',
async () => {
let obj = {
dataModelId: 'f4014d53-b30f-4490-9812-cea379a1b398',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either make this an environment variable, or create a new data model on the test. Don't pass IDs directly

test/pda.test.ts Outdated
Comment on lines 28 to 29
type: UserIdentifierType.EMAIL,
value: 'sid',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this working? sid is not an email

test/pda.test.ts Outdated
Comment on lines 45 to 47
const { PDA } = await api.pda.getPDA(
'6bc1a11f-f91d-4361-9a22-5df8d1bf4dc8',
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a PDA and then try to get it by ID

@Siddharth9890 Siddharth9890 merged commit 9d1322a into main Nov 21, 2023
1 check passed
@NMCarv NMCarv deleted the feat/PDA branch November 21, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants