Skip to content

Add contract authorisation failure tests #557

Description

@El-swaggerito

Description

Difficulty: Expert

Type: Test

Summary

Add tests for authorisation failure cases across Savings Vault operations.

Current Behaviour

Authorisation failures may not be covered consistently for all mutating contract methods.

Expected Behaviour

The test suite should verify that unauthorised callers cannot deposit for restricted accounts, lock funds, withdraw funds, or mutate protected state where applicable.

Suggested Implementation

Create wrong-caller tests, state consistency assertions, and documentation notes.

Files or Areas Likely Affected

  • contracts/
  • src/
  • tests/
  • docs/

Acceptance Criteria

  • Unauthorised caller tests are added.
  • Protected mutating methods are covered.
  • Failed authorisation does not mutate state.
  • Expected errors are asserted.
  • Tests are deterministic.
  • Docs explain authorisation assumptions.

Additional Notes

This is a GrantFox-standard contract issue requiring tests.

Metadata

Metadata

Labels

GrantFox OSSIssue tracked for GrantFox OSS contributionMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Official GrantFox campaign labelcontractSmart contract related workexpertExpert difficultysecuritySecurity sensitive worksorobanSoroban smart contract worktestTesting work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions