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
- Call batch_update_usage with 150 meters
- Contract attempts to emit event with all 150 meter IDs
- Transaction fails: event data exceeds limit
- 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 |
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
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