Skip to content

Fix: Evaluator contract-file input#54

Merged
mokita-j merged 1 commit intomainfrom
fix/evaluator-contract-input
May 19, 2025
Merged

Fix: Evaluator contract-file input#54
mokita-j merged 1 commit intomainfrom
fix/evaluator-contract-input

Conversation

@mokita-j
Copy link
Copy Markdown
Member

This PR refines the validation logic for the --contract-file input argument in the evaluator.

  • The argument now only accepts paths to Solidity contracts that exist under smartbugs-curated/0.4.x/contracts/dataset.
  • Accepted values must follow the relative format: <vulnerability-type>/<filename>
  • Any inputs that do not match this pattern or do not correspond to an existing contract are excluded from patching and exploit testing.

This ensures the evaluator only processes valid dataset contracts and prevents errors caused by invalid paths.

@mokita-j mokita-j merged commit 3cb35db into main May 19, 2025
3 checks passed
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.

1 participant