Skip to content

Commit 5c8c183

Browse files
committed
Fixed typos in comments
1 parent a7890a6 commit 5c8c183

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/model/receipt/ResolutionStatement.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class ResolutionStatement {
106106
If no primaryId found, it means there's no resolution entry available for the process. Invalid entry.
107107
108108
e.g. Given:
109-
Entries: [{P:2, S:0}, {P5:, S:6}]
109+
Entries: [{P:2, S:0}, {P:5, S:6}]
110110
Transaction: [Inx:1(0+1), AggInx:0]
111111
It should return Entry: undefined
112112
*/
@@ -118,12 +118,12 @@ export class ResolutionStatement {
118118
Use the most recent resolution entry (Max.PrimaryId + Max.SecondaryId)
119119
120120
e.g. Given:
121-
Entries: [{P:1, S:0}, {P:2, S:0}, {P:4, S:2}, {P:4, S:4} {P7:, S:6}]
122-
Transaction: [Inx:5(0+1), AggInx:0]
123-
It should return Entry: {P:3, S:4}
121+
Entries: [{P:1, S:0}, {P:2, S:0}, {P:4, S:2}, {P:4, S:4} {P:7, S:6}]
122+
Transaction: [Inx:5(4+1), AggInx:0]
123+
It should return Entry: {P:4, S:4}
124124
125125
e.g. Given:
126-
Entries: [{P:1, S:0}, {P:2, S:0}, {P:4, S:2}, {P:4, S:4}, {P7:, S:6}]
126+
Entries: [{P:1, S:0}, {P:2, S:0}, {P:4, S:2}, {P:4, S:4}, {P:7, S:6}]
127127
Transaction: [Inx:3(2+1), AggInx:0]
128128
It should return Entry: {P:2, S:0}
129129
*/
@@ -132,16 +132,16 @@ export class ResolutionStatement {
132132
entry.source.secondaryId === this.getMaxSecondaryIdByPrimaryId(resolvedPrimaryId));
133133
}
134134

135-
// When transaction index matches a primary id, get the most recent secondaryId (resolvedPrimaryId can only <= primaryId)
135+
// When transaction index matches a primaryId, get the most recent secondaryId (resolvedPrimaryId can only <= primaryId)
136136
const resolvedSecondaryId = this.getMaxSecondaryIdByPrimaryIdAndSecondaryId(resolvedPrimaryId, secondaryId);
137137

138138
/*
139139
If no most recent secondaryId matched transaction index, find previous resolution entry (most recent).
140-
This means the resolution entry for the specific innter transaction (inside Aggregate) /
141-
was generated previously outside the aggregate. It should return the previous entry (privious primarId)
140+
This means the resolution entry for the specific inner transaction (inside Aggregate) /
141+
was generated previously outside the aggregate. It should return the previous entry (previous primaryId)
142142
143143
e.g. Given:
144-
Entries: [{P:1, S:0}, {P:2, S:0}, {P5:, S:6}]
144+
Entries: [{P:1, S:0}, {P:2, S:0}, {P:5, S:6}]
145145
Transaction: [Inx:5(4+1), AggInx:3(2+1)]
146146
It should return Entry: {P:2, S:0}
147147
*/
@@ -155,7 +155,7 @@ export class ResolutionStatement {
155155
Found a matched resolution entry on both primaryId and secondaryId
156156
157157
e.g. Given:
158-
Entries: [{P:1, S:0}, {P:2, S:0}, {P5:, S:6}]
158+
Entries: [{P:1, S:0}, {P:2, S:0}, {P:5, S:6}]
159159
Transaction: [Inx:5(4+1), AggInx:6(2+1)]
160160
It should return Entry: {P:5, S:6}
161161
*/

0 commit comments

Comments
 (0)