Description
late_payment_penalty_charged in contracts/split/src/events.rs publishes with topics ("late_pen", invoice_id) — the invoice_id is already the second topic, so indexers can filter by it. However the event does not include invoice_id in the data payload, making data-only decoders unable to identify which invoice was affected.
Acceptance Criteria
Context
- Target file:
contracts/split/src/events.rs
Description
late_payment_penalty_chargedincontracts/split/src/events.rspublishes with topics("late_pen", invoice_id)— the invoice_id is already the second topic, so indexers can filter by it. However the event does not includeinvoice_idin the data payload, making data-only decoders unable to identify which invoice was affected.Acceptance Criteria
late_payment_penalty_chargedto includeinvoice_idin the event data:(invoice_id, payer, penalty_amount)cargo testpassesContext
contracts/split/src/events.rs