Skip to content

Commit 048b079

Browse files
authored
Fix/according to protocol (#298)
* remove metadata from credential proposal request * make txHash as optional field
1 parent d3e903d commit 048b079

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@0xpolygonid/js-sdk",
3-
"version": "1.26.0",
3+
"version": "1.27.0",
44
"description": "SDK to work with Polygon ID",
55
"main": "dist/node/cjs/index.js",
66
"module": "dist/node/esm/index.js",

src/iden3comm/handlers/credential-proposal.ts

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
CredentialsOfferMessage,
66
DIDDocument,
77
IPackageManager,
8-
JsonDocumentObject,
98
PackerParams
109
} from '../types';
1110

@@ -31,7 +30,6 @@ import { verifyExpiresTime } from './common';
3130
/** @beta ProposalRequestCreationOptions represents proposal-request creation options */
3231
export type ProposalRequestCreationOptions = {
3332
credentials: ProposalRequestCredential[];
34-
metadata?: { type: string; data?: JsonDocumentObject };
3533
did_doc?: DIDDocument;
3634
expires_time?: Date;
3735
};

src/iden3comm/types/protocol/contract-request.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export type ContractInvokeResponseBody = {
3131

3232
/** OnChainZeroKnowledgeProofResponse represents structure of onchain zero knowledge proof response */
3333
export type OnChainZeroKnowledgeProofResponse = ZeroKnowledgeProofResponse & {
34-
txHash: string;
34+
txHash?: string;
3535
};
3636

3737
/** ContractInvokeTransactionData represents structure of contract invoke transaction data object */

0 commit comments

Comments
 (0)