Skip to content

Add vault pause transition tests #355

Description

@Brainoncrack

Description

Difficulty: Expert

Type: Test

Summary

Add tests for entering and exiting pause state if pause support exists.

Current Behaviour

Pause transitions can create unsafe or confusing contract behaviour.

Expected Behaviour

The contract should only allow authorised pause changes and should preserve accounting state.

Suggested Implementation

Test authorised pause, unauthorised pause, unpause, and user operation behaviour during pause.

Files or Areas Likely Affected

tests/
src/

Acceptance Criteria

  • Authorised pause is tested.
  • Unauthorised pause is rejected.
  • Unpause is tested.
  • Accounting state remains unchanged.
  • Paused operation behaviour is verified.

Additional Notes

Only implement if pause is part of the design.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked for GrantFox OSS contributionMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Official GrantFox campaign label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions