Skip to content

Negative test: unauthorized settle or withdraw #61

@greatest0fallt1me

Description

@greatest0fallt1me

Description

If settle/withdraw requires auth in final design, add tests ensuring wrong signer cannot drain.

Requirements and context

  • Align with token integration.
  • Use granular auth testing patterns.

Suggested execution

  • Fork the repository and create a branch (example below).
  • Implement the changes in the StreamPay-Contracts Soroban crate (streampay-contracts).
  • Keep the contract secure, tested, and documented; prefer small, reviewable diffs.
git checkout -b test/unauthorized-settle-withdraw

Implementation targets

  • src/lib.rs tests without mock_all_auths where applicable.

Tests and validation

  • Document Soroban auth testing pattern.

  • Run cargo test in StreamPay-Contracts.

  • Cover edge cases; capture test output and short security notes in the PR description.

Guidelines

  • Target minimum 95% test coverage for touched contract code (or justify gaps explicitly).
  • Clear documentation (rustdoc / project docs as specified).
  • Timeframe: 96 hours from assignment.

Example commit message

test(contracts): unauthorized payout attempts fail

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions