We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c34cdcd commit a06a4e4Copy full SHA for a06a4e4
src/model/receipt/ResolutionStatement.ts
@@ -115,8 +115,7 @@ export class ResolutionStatement {
115
}
116
117
// When transaction index matches a primary id, get the most recent secondaryId
118
- const resolvedSecondaryId = Math.max(...this.resolutionEntries
119
- .map((entry) => secondaryId >= entry.source.secondaryId ? entry.source.secondaryId : 0));
+ const resolvedSecondaryId = this.getMaxSecondaryIdByPrimaryId(resolvedPrimaryId);
120
121
if (resolvedSecondaryId === 0 && secondaryId !== resolvedSecondaryId) {
122
/*
0 commit comments