Skip to content

Conversation

@nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented Mar 15, 2023

From Audit

There is a require statement with multiple conditions in the handleTelepathy function of
the Succinct_SpokePool contract.
Consider isolating each condition in its own separate require statement with a corresponding
error message, to more easily identify the specific condition that failed.

Developer's response

This change allowed me to make unit tests for Succinct_SpokePool more strict and check error messages

## From Audit

There is a require statement with multiple conditions in the handleTelepathy function of
the Succinct_SpokePool contract.
Consider isolating each condition in its own separate require statement with a corresponding
error message, to more easily identify the specific condition that failed.

## Developer's response

This change allowed me to make unit tests for `Succinct_SpokePool` more strict and check error messages
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 c42ea4f into master Mar 16, 2023
@nicholaspai nicholaspai deleted the audit/n02 branch March 16, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants