-
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
base: release/core-contracts/12
Are you sure you want to change the base?
Fix PrecompileOverride
bug
#11269
Conversation
contract TransitionToL2After is GovernanceTest { | ||
function setUp() public { | ||
super.setUp(); | ||
_whenL2(); | ||
} | ||
} |
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 this be defined in a general purpose util?
PrecompileOverride
bug
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) |
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.
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?
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.