Skip to content

Add ledger_sequence to invoice_cloned event data #602

Description

@Kingsman-99

Description

invoice_cloned in contracts/split/src/events.rs currently publishes an empty data payload (). Adding the ledger_sequence at which the clone occurred gives indexers a timestamp anchor without needing to query ledger metadata separately.

Acceptance Criteria

  • Modify invoice_cloned to publish (env.ledger().sequence(),) as the event data instead of ()
  • Update any tests that assert the exact data payload of the cloned event
  • cargo test passes

Context

  • Target file: contracts/split/src/events.rs

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcomplexity: highComplex feature requiring deep knowledge - 200 ptsenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions