From 5c2989d43059e1655d43dc45d234081d36573a6a Mon Sep 17 00:00:00 2001 From: Vitor Estevam Date: Wed, 15 Feb 2023 11:28:55 -0300 Subject: [PATCH] remove DIF from credential offer filter --- credential_exchange_v2.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/credential_exchange_v2.go b/credential_exchange_v2.go index 653d325..56dd511 100644 --- a/credential_exchange_v2.go +++ b/credential_exchange_v2.go @@ -24,7 +24,6 @@ func (c *Client) CreateCredentialExchangeRecordV2( var request = createCredentialExchangeRecordRequestV2{ CredentialPreview: credentialPreview, Filter: Filter{ - DIF: map[string]string{}, Indy: IndyFilter{ CredentialDefinitionID: credentialDefinitionID, IssuerDID: issuerDID, @@ -70,7 +69,6 @@ func (c *Client) ProposeCredentialV2( Comment: comment, CredentialPreview: credentialPreview, Filter: Filter{ - DIF: map[string]string{}, Indy: IndyFilter{ CredentialDefinitionID: credentialDefinitionID, IssuerDID: issuerDID, @@ -102,8 +100,7 @@ type credentialOfferRequestV2 struct { } type Filter struct { - DIF map[string]string `json:"dif"` - Indy IndyFilter `json:"indy"` + Indy IndyFilter `json:"indy"` } type IndyFilter struct { @@ -129,7 +126,6 @@ func (c *Client) OfferCredentialV2( CredentialPreview: credentialPreview, Comment: comment, Filter: Filter{ - DIF: map[string]string{}, Indy: IndyFilter{ CredentialDefinitionID: credentialDefinitionID, }, @@ -193,7 +189,6 @@ func (c *Client) IssueCredentialV2( Comment: comment, CredentialPreview: credentialPreview, Filter: Filter{ - DIF: map[string]string{}, Indy: IndyFilter{ CredentialDefinitionID: credentialDefinitionID, IssuerDID: issuerDID,