Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions processors/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ func ExtractEntryFromChange(change ingest.Change) (xdr.LedgerEntry, xdr.LedgerEn
return *change.Post, changeType, false, nil
case xdr.LedgerEntryChangeTypeLedgerEntryRemoved:
return *change.Pre, changeType, true, nil
case xdr.LedgerEntryChangeTypeLedgerEntryRestored:
return *change.Post, changeType, false, nil
default:
return xdr.LedgerEntry{}, changeType, false, fmt.Errorf("unable to extract ledger entry type from change")
}
Expand Down
Loading