Skip to content

make the registerValidatorV2 contract pausable and add tests #3480

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

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

alysiahuggins
Copy link
Contributor

Closes #<ISSUE_NUMBER>

This PR:

this pr makes the registerValidatorV2 pausable and adds & updates tests for the pausable functionality in staketablev2. it checks that all functions with whenNotPaused revert when paused, and that unpausable functions remain callable. it also verifies correct event emission and role-based access for pausing and unpausing.

This PR does not:

this pr does not change contract logic

Key places to review:

  • StakeTableV2
  • StakeTable.t.sol

How to test this PR:

forge test --match-contract StakeTable

Things tested

  • pausable functions are paused when the contract is paused
  • non-pausable functions are not paused even when the contract is paused

@alysiahuggins alysiahuggins merged commit 9d2d2a1 into main Aug 4, 2025
107 checks passed
@alysiahuggins alysiahuggins deleted the stake-1 branch August 4, 2025 13:16
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