Skip to content

feat: prevent duplicate project registrations with metadata validatio…#56

Merged
Naomi-Gift merged 7 commits intoHubDApp:mainfrom
mayasimi:prevent-duplicate-project-registration
Feb 25, 2026
Merged

feat: prevent duplicate project registrations with metadata validatio…#56
Naomi-Gift merged 7 commits intoHubDApp:mainfrom
mayasimi:prevent-duplicate-project-registration

Conversation

@mayasimi
Copy link
Contributor

resolve #5

Summary

This PR implements logic to prevent duplicate project registrations in the Project Registry.

What Was Added

  • Validation to reject duplicate project submissions.
  • Duplicate detection based on project metadata (including name, description, category, and owner).
  • Clear error handling with explicit failure message.
  • Unit tests covering:
    • Exact duplicate submission (expected to fail)
    • Different projects with unique metadata (expected to succeed)

Expected Behavior

  • Contract rejects duplicate submissions.
  • Slightly different projects are allowed.
  • On-chain data integrity is preserved.

Test Results

All unit tests pass successfully:
17 passed; 0 failed.

Impact

Prevents registry clutter and ensures data integrity on-chain.

@Naomi-Gift Naomi-Gift merged commit c9a8051 into HubDApp:main Feb 25, 2026
4 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.

Prevent Duplicate Project Registrations

2 participants