Skip to content

[Bug] Large batch operations exceed Stellar event size limits #754

Description

@Dev-AdeTutu

Describe the Bug

Batch operations with 100+ meters fail because emitted events exceed Stellar's maximum event data size (256 bytes per event).

Steps to Reproduce

  1. Call batch_update_usage with 150 meters
  2. Contract attempts to emit event with all 150 meter IDs
  3. Transaction fails: event data exceeds limit
  4. Entire batch operation fails

Expected Behavior

Emit multiple smaller events or don't include full meter list in event payload.

Actual Behavior

Single large event causes transaction failure.

Environment

Field Value
Component contracts
Rust version rustc 1.77.0
Network testnet

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingcontracts

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions