From 026859a2329d08320f26c6920889a606fb6dad94 Mon Sep 17 00:00:00 2001 From: "Minh Huy, Tran" <94397738+NhoxxKienn@users.noreply.github.com> Date: Thu, 17 Nov 2022 10:21:49 +0100 Subject: [PATCH] Update package for checking CredentialMsgType Signed-off-by: Minh Huy, Tran <94397738+NhoxxKienn@users.noreply.github.com> --- pkg/client/issuecredential/doc.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/client/issuecredential/doc.go b/pkg/client/issuecredential/doc.go index 3c2bf5e53..50a2d081a 100644 --- a/pkg/client/issuecredential/doc.go +++ b/pkg/client/issuecredential/doc.go @@ -29,14 +29,14 @@ SPDX-License-Identifier: Apache-2.0 // case event := <-actions: // piid := e.Properties.All()["piid"].(string) // -// if event.Message.Type() == presentproof.ProposeCredentialMsgType { +// if event.Message.Type() == issuecredential.ProposeCredentialMsgTypeV2 { // // If Issuer is willing to accept the proposal. // client.AcceptProposalV2(piid, &OfferCredentialV2{}) // // If Issuer is not willing to accept the proposal. // client.DeclineProposal(piid, reason) // } // -// if event.Message.Type() == presentproof.OfferCredentialMsgType { +// if event.Message.Type() == issuecredential.OfferCredentialMsgTypeV2 { // // If Holder is willing to accept the offer. // client.AcceptOfferV2(piid) // // If Holder wants to counter an offer they received with a proposal. @@ -45,20 +45,20 @@ SPDX-License-Identifier: Apache-2.0 // client.DeclineOffer(piid, reason) // } // -// if event.Message.Type() == presentproof.RequestCredentialMsgType { +// if event.Message.Type() == issuecredential.RequestCredentialMsgTypeV2 { // // If Issuer is willing to accept the request. // client.AcceptRequestV2(piid, &IssueCredentialV2{}) // // If Issuer is not willing to accept the request. // client.DeclineRequest(piid, reason) // } -// if event.Message.Type() == presentproof.IssueCredentialMsgType { +// if event.Message.Type() == issuecredential.IssueCredentialMsgTypeV2 { // // If Holder is willing to accept the credentials. // client.AcceptCredential(piid, names) // // If Holder is not willing to accept the credentials. // client.DeclineCredential(piid, reason) // } // -// if event.Message.Type() == presentproof.ProblemReportMsgType { +// if event.Message.Type() == issuecredential.ProblemReportMsgTypeV2 { // // Problem report message is triggered to notify client about the error. // // In that case, there is only one option - accept it. // client.AcceptProblemReport(piid)