Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Jan 29, 2025
1 parent 7133aa2 commit b7773ae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/core/ports/agent_request_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/google/uuid"
"github.com/iden3/go-iden3-core/v2/w3c"
comm "github.com/iden3/iden3comm/v2"
"github.com/iden3/iden3comm/v2/protocol"
)

// NewAgentRequest validates the inputs and returns a new AgentRequest
Expand Down Expand Up @@ -36,10 +35,6 @@ func NewAgentRequest(basicMessage *comm.BasicMessage) (*AgentRequest, error) {
return nil, err
}

if basicMessage.Type != protocol.CredentialFetchRequestMessageType && basicMessage.Type != protocol.RevocationStatusRequestMessageType {
return nil, fmt.Errorf("invalid type")
}

if basicMessage.ID == "" {
return nil, fmt.Errorf("'id' field cannot be empty")
}
Expand Down

0 comments on commit b7773ae

Please sign in to comment.