-
Notifications
You must be signed in to change notification settings - Fork 375
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
Fix PrecompileOverride
bug
#11269
Conversation
packages/protocol/test-sol/unit/governance/network/Governance.t.sol
Outdated
Show resolved
Hide resolved
PrecompileOverride
bug
Can we write a forge test for this? |
Fix
|
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
There was a problem hiding this 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
Description
Governance e2e test was failing on CI.
After investigating, I found that when calling the
validatorSignerAddressFromCurrentSet()
function in thePrecompileOverride
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.