You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which components does the task require to be changed? (think hard pls)
snforge
Description
Currently we check if the event should be caught by any spy, if it should, we add it to detected events.
Then in fetch_events we consume the events that the spy should catch, deleting it from detected events vector.
This results in a weird coupling of logic and causes unintuitive behaviour when spying on the same contract with multiple spies.
We should instead keep a queue for each spy and push/pop events from it accordingly
The text was updated successfully, but these errors were encountered:
Which components does the task require to be changed? (think hard pls)
snforge
Description
Currently we check if the event should be caught by any spy, if it should, we add it to detected events.
Then in
fetch_events
we consume the events that the spy should catch, deleting it from detected events vector.This results in a weird coupling of logic and causes unintuitive behaviour when spying on the same contract with multiple spies.
We should instead keep a queue for each spy and push/pop events from it accordingly
The text was updated successfully, but these errors were encountered: