-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat/pda #2
Conversation
src/pda/PDA.ts
Outdated
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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
type: UserIdentifierType.EMAIL, | ||
value: 'sid', |
There was a problem hiding this comment.
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
const { PDA } = await api.pda.getPDA( | ||
'6bc1a11f-f91d-4361-9a22-5df8d1bf4dc8', | ||
); |
There was a problem hiding this comment.
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
No description provided.