Skip to content

Commit

Permalink
reformat comments
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikiyer56 committed Nov 21, 2024
1 parent 06139d3 commit 070c552
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ingest/ledger_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ func (t *LedgerTransaction) GetChanges() ([]Change, error) {
// These changes reflect the ledgerEntry changes that were caused by the operations in the transaction
// Populate the operationInfo for these changes in the `Change` struct

for opIdx, _ := range v1Meta.Operations {
operationMeta := v1Meta.Operations
// operationMeta is a list of lists.
// Each element in operationMeta is a list of ledgerEntryChanges
// caused by the operation at that index of the element
for opIdx, _ := range operationMeta {
opChanges := t.operationChanges(v1Meta.Operations, uint32(opIdx))
changes = append(changes, opChanges...)
}
Expand Down Expand Up @@ -88,6 +92,9 @@ func (t *LedgerTransaction) GetChanges() ([]Change, error) {
return changes, nil
}

// operationMeta is a list of lists.
// Each element in operationMeta is a list of ledgerEntryChanges
// caused by the operation at that index of the element
for opIdx, _ := range operationMeta {
opChanges := t.operationChanges(operationMeta, uint32(opIdx))
changes = append(changes, opChanges...)
Expand Down

0 comments on commit 070c552

Please sign in to comment.