Summary
The assert_event test helper should fail with a clear message when the transaction result contains events but none match the expected topic. Unit tests should confirm the helper fails correctly on a topic mismatch and passes on a correct topic.
Scope
- Emit an event with topic
buy and call assert_event with topic sell — assert the helper panics
- Emit an event with topic
buy and call assert_event with topic buy — assert the helper passes
- Emit no events and call
assert_event with any topic — assert the helper panics
- Assert the panic message on topic mismatch identifies the expected and actual topics
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The
assert_eventtest helper should fail with a clear message when the transaction result contains events but none match the expected topic. Unit tests should confirm the helper fails correctly on a topic mismatch and passes on a correct topic.Scope
buyand callassert_eventwith topicsell— assert the helper panicsbuyand callassert_eventwith topicbuy— assert the helper passesassert_eventwith any topic — assert the helper panicsAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram