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

Open
wants to merge 23 commits into
base: release/core-contracts/12
Choose a base branch
from

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
Comment on lines 266 to 271
contract TransitionToL2After is GovernanceTest {
function setUp() public {
super.setUp();
_whenL2();
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be defined in a general purpose util?

@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?

@@ -442,7 +442,7 @@ describe('governance tests', () => {

// groupKit uses a different node than kit does, so wait a second in case kit's node
// got the new block before groupKit's node did.
await sleep(1)
await sleep(5)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was this increase necessary? Out of scope for this PR, but do we have any way to do an exact wait, rather than an arbitrary sleep?

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