cairo-contracts icon indicating copy to clipboard operation
cairo-contracts copied to clipboard

Improve EventSpyExt utils

Open immrsd opened this issue 1 year ago • 2 comments

For now, assert_event_emitted checks that the next event is the expected one and then increments the offset variable. It leads to several problems:

  • the expected event must be the next one, otherwise the assertion fails
  • the order of events matters
  • if there's an event from another contract, assertions start to fail

immrsd avatar Sep 03 '24 15:09 immrsd

Hey @ericnordelo can i work on this?

virajbhartiya avatar Apr 07 '25 17:04 virajbhartiya

Hey @virajbhartiya. Thanks for your interest in contributing! We plan to take this particular issue since it involves careful design around the API of the solution. I recommend you to check the list of good first issues to start contributing to the library.

ericnordelo avatar Apr 08 '25 09:04 ericnordelo