Description
Difficulty: Expert
Type: Test
Summary
Add negative-path tests for the Savings Vault contract.
Current Behaviour
Vault tests may focus on successful deposit and withdrawal flows while missing invalid or unauthorised cases.
Expected Behaviour
The test suite should cover invalid deposit amounts, early withdrawals, unauthorised access, missing initialisation, and invalid lock states.
Suggested Implementation
Create negative-path tests, assert expected errors, and verify state remains unchanged after failure.
Files or Areas Likely Affected
- contracts/
- src/
- tests/
- docs/
Acceptance Criteria
Additional Notes
This makes contract PRs more evaluation-ready.
Description
Difficulty: Expert
Type: Test
Summary
Add negative-path tests for the Savings Vault contract.
Current Behaviour
Vault tests may focus on successful deposit and withdrawal flows while missing invalid or unauthorised cases.
Expected Behaviour
The test suite should cover invalid deposit amounts, early withdrawals, unauthorised access, missing initialisation, and invalid lock states.
Suggested Implementation
Create negative-path tests, assert expected errors, and verify state remains unchanged after failure.
Files or Areas Likely Affected
Acceptance Criteria
Additional Notes
This makes contract PRs more evaluation-ready.