Skip to content

Commit

Permalink
Merge pull request #673 from sandrask/issue-672
Browse files Browse the repository at this point in the history
chore: Rename operationRequest to operation
  • Loading branch information
fqutishat authored Apr 11, 2022
2 parents 9e3aeb5 + da242f7 commit 6eb6023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/api/operation/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type AnchoredOperation struct {
UniqueSuffix string `json:"uniqueSuffix"`

// OperationRequest is the original operation request
OperationRequest []byte `json:"operationRequest"`
OperationRequest []byte `json:"operation"`

// TransactionTime is the logical anchoring time (block number in case of blockchain) for this operation in the anchoring system (blockchain).
TransactionTime uint64 `json:"transactionTime"`
Expand Down
4 changes: 2 additions & 2 deletions pkg/versions/1_0/doctransformer/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ type PublishedOperation struct {
Type operation.Type `json:"type"`

// OperationRequest is the original operation request.
OperationRequest []byte `json:"operationRequest"`
OperationRequest []byte `json:"operation"`

// TransactionTime is the logical anchoring time.
TransactionTime uint64 `json:"transactionTime"`
Expand Down Expand Up @@ -214,7 +214,7 @@ type UnpublishedOperation struct {
Type operation.Type `json:"type"`

// OperationRequest is the original operation request.
OperationRequest []byte `json:"operationRequest"`
OperationRequest []byte `json:"operation"`

// TransactionTime is the logical anchoring time.
TransactionTime uint64 `json:"transactionTime"`
Expand Down

0 comments on commit 6eb6023

Please sign in to comment.