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

update vc functions to add options - especially removeOriginalFields=false #433

Merged
merged 3 commits into from
May 24, 2024

Conversation

icetrust0212
Copy link

No description provided.

Copy link
Contributor

@aurelticot aurelticot left a comment

Choose a reason for hiding this comment

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

A few changes but otherwise looks ok.

Only static review though, I'm not able to test it.

* @returns
*/

async issueEncryptedPresentation(didJwtVc: any): Promise<any> {
async issueEncryptedPresentation(didJwtVc: any, options: CreatePresentationOptions = {removeOriginalFields: false}): Promise<any> {
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to set the default value for options as it will eventually use the defauls from this.issuePublicPresentation

Copy link
Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

Choose a reason for hiding this comment

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

You removed the default value on the wrong method

Copy link
Author

Choose a reason for hiding this comment

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

Oh, yeah. Done

@icetrust0212 icetrust0212 merged commit b4c4596 into develop May 24, 2024
@icetrust0212 icetrust0212 deleted the fix-vc-generation branch May 24, 2024 05:11
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.

Fix loosing properties when generating verifiable credentials
2 participants