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

Soloseng/L2-Accounts-test #11268

Merged
merged 4 commits into from
Nov 14, 2024
Merged

Conversation

soloseng
Copy link
Contributor

Description

setup Accounts test for L2

Related issues

@soloseng soloseng requested a review from a team as a code owner November 13, 2024 20:30
Copy link
Contributor

@m-chrzan m-chrzan left a comment

Choose a reason for hiding this comment

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

Looks good, just two changes following the Validators test PR.

@@ -80,13 +79,11 @@ contract AccountsTest is Test, TestConstants {
event PaymentDelegationSet(address indexed beneficiary, uint256 fraction);

function setUp() public {
deployCodeTo("Registry.sol", abi.encode(false), REGISTRY_ADDRESS);
setupRegistry();
Copy link
Contributor

Choose a reason for hiding this comment

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

Utils setUp now sets up the registry, so can just use super.setUp().

Suggested change
setupRegistry();
super.setUp();

@@ -200,7 +193,12 @@ contract AccountsTest is Test, TestConstants {
);
}
}

contract TransitionToL2AfterL1 is AccountsTest {
Copy link
Contributor

Choose a reason for hiding this comment

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

Use the new WhenL2 pattern, see e.g. in Validators test.

@soloseng soloseng merged commit 3145e52 into release/core-contracts/12 Nov 14, 2024
37 of 42 checks passed
@soloseng soloseng deleted the soloseng/L2-Accounts-test branch November 14, 2024 21:48
@soloseng soloseng self-assigned this Nov 14, 2024
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