Skip to content

test: add contract fuzz targets#152

Open
TUPM96 wants to merge 1 commit into
sorosave-protocol:mainfrom
TUPM96:codex/fuzz-contract-36
Open

test: add contract fuzz targets#152
TUPM96 wants to merge 1 commit into
sorosave-protocol:mainfrom
TUPM96:codex/fuzz-contract-36

Conversation

@TUPM96
Copy link
Copy Markdown

@TUPM96 TUPM96 commented May 25, 2026

/claim #36

Summary

  • add a cargo-fuzz package under contracts/sorosave/fuzz
  • add fuzz targets for create_group, contribute, and distribute_payout
  • add a shared Soroban harness with mocked auth, test token setup, randomized members, and randomized action ordering
  • document how to run the targets and current findings
  • keep the fuzz package excluded from the default workspace so normal contract CI is not forced to build libFuzzer dependencies

Validation

  • cargo fmt --check
  • cargo fmt --manifest-path contracts/sorosave/fuzz/Cargo.toml --check
  • cargo test --package sorosave
  • cargo check --manifest-path contracts/sorosave/fuzz/Cargo.toml --bins
  • cargo clippy --package sorosave --all-targets -- -D warnings
  • cargo clippy --manifest-path contracts/sorosave/fuzz/Cargo.toml --bins -- -D warnings
  • git diff --check

Note: cargo-fuzz is not installed in this local environment, so I validated that all fuzz bins compile via cargo check.

Payout details can be provided privately on acceptance.

Copilot AI review requested due to automatic review settings May 25, 2026 10:38
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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