Skip to content

Commit

Permalink
Fix/according to protocol (#298)
Browse files Browse the repository at this point in the history
* remove metadata from credential proposal request

* make txHash as optional field
  • Loading branch information
vmidyllic authored Jan 17, 2025
1 parent d3e903d commit 048b079
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@0xpolygonid/js-sdk",
"version": "1.26.0",
"version": "1.27.0",
"description": "SDK to work with Polygon ID",
"main": "dist/node/cjs/index.js",
"module": "dist/node/esm/index.js",
Expand Down
2 changes: 0 additions & 2 deletions src/iden3comm/handlers/credential-proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
CredentialsOfferMessage,
DIDDocument,
IPackageManager,
JsonDocumentObject,
PackerParams
} from '../types';

Expand All @@ -31,7 +30,6 @@ import { verifyExpiresTime } from './common';
/** @beta ProposalRequestCreationOptions represents proposal-request creation options */
export type ProposalRequestCreationOptions = {
credentials: ProposalRequestCredential[];
metadata?: { type: string; data?: JsonDocumentObject };
did_doc?: DIDDocument;
expires_time?: Date;
};
Expand Down
2 changes: 1 addition & 1 deletion src/iden3comm/types/protocol/contract-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type ContractInvokeResponseBody = {

/** OnChainZeroKnowledgeProofResponse represents structure of onchain zero knowledge proof response */
export type OnChainZeroKnowledgeProofResponse = ZeroKnowledgeProofResponse & {
txHash: string;
txHash?: string;
};

/** ContractInvokeTransactionData represents structure of contract invoke transaction data object */
Expand Down

0 comments on commit 048b079

Please sign in to comment.