From dce9dbba57f6c693c28c3951a57b89dbba02b5c4 Mon Sep 17 00:00:00 2001 From: Firas Qutishat Date: Mon, 11 Apr 2022 16:29:32 -0400 Subject: [PATCH] chore: rename operationRequest to operation Signed-off-by: Firas Qutishat --- pkg/doc/did/doc.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/doc/did/doc.go b/pkg/doc/did/doc.go index 70a4a6bfe..03bb2ee7c 100644 --- a/pkg/doc/did/doc.go +++ b/pkg/doc/did/doc.go @@ -180,15 +180,15 @@ type MethodMetadata struct { // AnchorOrigin is anchor origin. AnchorOrigin string `json:"anchorOrigin,omitempty"` // UnpublishedOperations unpublished operations - UnpublishedOperations []*Operations `json:"unpublishedOperations,omitempty"` + UnpublishedOperations []*ProtocolOperation `json:"unpublishedOperations,omitempty"` // PublishedOperations published operations - PublishedOperations []*Operations `json:"publishedOperations,omitempty"` + PublishedOperations []*ProtocolOperation `json:"publishedOperations,omitempty"` } -// Operations info. -type Operations struct { - // OperationRequest is operation request. - OperationRequest string `json:"operationRequest,omitempty"` +// ProtocolOperation info. +type ProtocolOperation struct { + // Operation is operation request. + Operation string `json:"operation,omitempty"` // ProtocolVersion is protocol version. ProtocolVersion int `json:"protocolVersion,omitempty"` // TransactionNumber is transaction number.