Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve: [L02] Lack of event emission after sensitive action #252

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

nicholaspai
Copy link
Member

From Audit:

The setSuccinctTargetAmb administrative function does not emit a relevant event after changing the succinctTargetAmb address.

Consider always emitting events after sensitive changes take place to facilitate tracking and notify off-chain clients that follow the protocol's contracts' activity.

Developer response

This PR not only addresses the above issue but adds events to the Polygon_SpokePool and Succinct_SpokePool's handler functions that trigger when they are called by an L2 system contract to finalize an L1-->L2 message

## From Audit:
The `setSuccinctTargetAmb` administrative function does not emit a relevant event after
changing the `succinctTargetAmb` address.

Consider always emitting events after sensitive changes take place to facilitate tracking and
notify off-chain clients that follow the protocol's contracts' activity.

## Developer response
This PR not only addresses the above issue but adds events to the `Polygon_SpokePool` and `Succinct_SpokePool`'s handler functions that trigger when they are called by an L2 system contract to finalize an L1-->L2 message
@nicholaspai nicholaspai added the OZ Audit - March 2023 Resolves issue discovered in March 2023 OZ Audit label Mar 15, 2023
Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nicholaspai nicholaspai merged commit 10c1190 into master Mar 16, 2023
@nicholaspai nicholaspai deleted the audit/l02 branch March 16, 2023 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OZ Audit - March 2023 Resolves issue discovered in March 2023 OZ Audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants