Summary
Tests that verify emitted contract events repeat the same boilerplate to extract and compare event fields from the transaction result meta. A shared test helper should reduce this to a single assertion call.
Scope
- Add
assert_event(env, contract_id, topic, expected_fields) test helper
- Helper should extract events from the transaction result, filter by topic, and compare fields
- Add usage in at least two existing event-emitting test cases to validate the helper
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
Tests that verify emitted contract events repeat the same boilerplate to extract and compare event fields from the transaction result meta. A shared test helper should reduce this to a single assertion call.
Scope
assert_event(env, contract_id, topic, expected_fields)test helperAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram