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 PrecompileOverride bug #11269

Merged
merged 24 commits into from
Feb 3, 2025

Conversation

soloseng
Copy link
Contributor

@soloseng soloseng commented Nov 13, 2024

Description

Governance e2e test was failing on CI.

After investigating, I found that when calling the validatorSignerAddressFromCurrentSet() function in the PrecompileOverride contract on L1, the function did not return the value. Since the unit test dont actually test the precompiles, this error remained unnoticed until now.

Tested

All e2e test and unit test are now passing.

@soloseng soloseng requested review from a team as code owners November 13, 2024 21:18
@soloseng soloseng requested a review from alvarof2 November 13, 2024 21:18
@soloseng soloseng self-assigned this Nov 19, 2024
@soloseng soloseng marked this pull request as draft November 19, 2024 21:24
@soloseng soloseng marked this pull request as ready for review January 31, 2025 23:22
@soloseng soloseng changed the title [Do Not Merge] Soloseng/fix-Governance-e2e Fix PrecompileOverride bug Jan 31, 2025
@martinvol
Copy link
Contributor

Can we write a forge test for this?

Copy link

Fix PrecompileOverride bug

Generated at commit: e395185f01fee0b1681d75119e01880c3a5e0fa5

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
2
0
15
43
63
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

Copy link
Contributor Author

@soloseng soloseng left a comment

Choose a reason for hiding this comment

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

Can we write a forge test for this?

This is a precompile related function, so any test would be a mock and not use the actual contract

@soloseng soloseng enabled auto-merge (squash) February 3, 2025 21:13
@soloseng soloseng merged commit 46e1bcc into release/core-contracts/12 Feb 3, 2025
42 checks passed
@soloseng soloseng deleted the soloseng/fix-Governance-e2e branch February 3, 2025 21:33
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