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

Add PermanentRestriction tests #747

Conversation

Yberjon
Copy link

@Yberjon Yberjon commented Aug 28, 2024

What ❔

This PR adds tests for PermanentRestriction contract.

Copy link
Collaborator

@saxenism saxenism left a comment

Choose a reason for hiding this comment

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

It would be great if we could test the (relevant and then random) values of the public mappings that are affected by calling certain functions.

Rest looks fine.

protocolVersion: 0
});

vm.expectRevert(bytes.concat("STM: owner zero"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we have this test in the setUp?

}

function test_allowAdminImplementation(bytes32 implementationHash) public {
vm.expectEmit();
Copy link
Collaborator

Choose a reason for hiding this comment

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

topics could be compared

@StanislavBreadless
Copy link
Collaborator

I am not sure why coverage fails, I'll assume it is some CI bug and will merge

@StanislavBreadless StanislavBreadless merged commit 5bb65c7 into matter-labs:sb-limited-chain-amdin Sep 2, 2024
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants