Description
invoice_refunded in contracts/split/src/events.rs currently publishes only (event_seq,) in the data field. The invoice_id is only in the topic. Adding the invoice ID to the data payload makes it easier for indexers that decode only event data (not topics) to correlate refund events with invoices.
Acceptance Criteria
Context
- Target file:
contracts/split/src/events.rs
Description
invoice_refundedincontracts/split/src/events.rscurrently publishes only(event_seq,)in the data field. Theinvoice_idis only in the topic. Adding the invoice ID to the data payload makes it easier for indexers that decode only event data (not topics) to correlate refund events with invoices.Acceptance Criteria
invoice_refundedto includeinvoice_idin the event data tuple:(invoice_id, event_seq)cargo testpassesContext
contracts/split/src/events.rs