[Bug]: E2E Treats All Emitted Events as Anonymous (Ignores Event Names) #408
Labels
type: bug
Something is not working as intended.
type: ref
A code update that doesn't meaningfully change functionality.
type: test
Changes to the testing suite.
What happened?
The problem was first noticed here:
#352 (comment)
Explanation: we are trying to assert that the correct event was emitted when
Ownable2Step::transfer_ownership
was called, which should beOwnershipTransferStarted
, but the wrong event was asserted to had been emitted (OwnerhipTransferred
). This assertion should have failed the test run, but it somehow passed!This is when we realized there might be a problem with our e2e tool.
After further investigation, the reason for this became evident - currently used version of
alloy-sol-types
(0.7.6) does not check event signature when decoding logs, in effect treating all events as anonymous.Pasting below the main part of the investigation report:
In short, to solve the issue we will have to wait for Stylus SDK to start supporting alloy ^0.8.4 for this to be addressed.
platform
Expected behavior
Event signatures should be taken into account when asserting that certain events were emitted.
Contribution Guidelines
The text was updated successfully, but these errors were encountered: