Skip to content

Commit 404e016

Browse files
committed
Fixed bug in transaction service
1 parent 903db08 commit 404e016

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/service/TransactionService.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@ export class TransactionService {
6767
if (!resolutionStatement) {
6868
throw new Error('No resolution statement found');
6969
}
70-
7170
// source (0,0) is reserved for blocks, source (n, 0) is for txes, where n is 1-based index
7271
const resolutionEntry = resolutionStatement.resolutionEntries
7372
.find((entry) => entry.source.primaryId ===
74-
(aggregateTransactionIndex ? aggregateTransactionIndex + 1 : transactionIndex + 1) &&
75-
entry.source.secondaryId === (aggregateTransactionIndex ? transactionIndex : 0));
73+
(aggregateTransactionIndex !== undefined ? aggregateTransactionIndex + 1 : transactionIndex + 1) &&
74+
entry.source.secondaryId === (aggregateTransactionIndex !== undefined ? transactionIndex + 1 : 0));
7675

7776
if (!resolutionEntry) {
7877
throw new Error('No resolution entry found');

0 commit comments

Comments
 (0)