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

fix: Misleading Errors #849

Merged
merged 1 commit into from
Oct 14, 2024
Merged

fix: Misleading Errors #849

merged 1 commit into from
Oct 14, 2024

Conversation

brunoffranca
Copy link
Member

Replaced InvalidInputNodeOwnerAddress error with the already existing ZeroAddress error. Also deleted unused error NodeOwnerNotFound.

Fixes N-01.

Comment on lines -441 to +442
revert InvalidInputNodeOwnerAddress();
revert ZeroAddress();
Copy link
Member

Choose a reason for hiding this comment

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

I think that the report suggest to leave InvalidInputNodeOwnerAddress as is in this function

Copy link
Member Author

Choose a reason for hiding this comment

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

Disagree. They say "The L2ContractErrors.sol file contains the ZeroAddress error declaration which can be used in both of the cases stated above."

@brunoffranca brunoffranca merged commit c6be1a7 into consensus-fix-review Oct 14, 2024
25 of 26 checks passed
@brunoffranca brunoffranca deleted the bf-N01 branch October 14, 2024 14:26
@Raid5594 Raid5594 restored the bf-N01 branch October 30, 2024 15:54
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.

2 participants