Skip to content

Commit

Permalink
remove DIF from credential offer filter
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorestevamia committed Feb 15, 2023
1 parent 2847309 commit 5c2989d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions credential_exchange_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -70,7 +69,6 @@ func (c *Client) ProposeCredentialV2(
Comment: comment,
CredentialPreview: credentialPreview,
Filter: Filter{
DIF: map[string]string{},
Indy: IndyFilter{
CredentialDefinitionID: credentialDefinitionID,
IssuerDID: issuerDID,
Expand Down Expand Up @@ -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 {
Expand All @@ -129,7 +126,6 @@ func (c *Client) OfferCredentialV2(
CredentialPreview: credentialPreview,
Comment: comment,
Filter: Filter{
DIF: map[string]string{},
Indy: IndyFilter{
CredentialDefinitionID: credentialDefinitionID,
},
Expand Down Expand Up @@ -193,7 +189,6 @@ func (c *Client) IssueCredentialV2(
Comment: comment,
CredentialPreview: credentialPreview,
Filter: Filter{
DIF: map[string]string{},
Indy: IndyFilter{
CredentialDefinitionID: credentialDefinitionID,
IssuerDID: issuerDID,
Expand Down

0 comments on commit 5c2989d

Please sign in to comment.