Skip to content

fix: return typed AlreadyInitialized error instead of panic in clinic…#199

Merged
Emeka000 merged 1 commit intoHealthy-Stellar:mainfrom
abore9769:fix/issue-169-clinical-trial-init-conflict
Mar 30, 2026
Merged

fix: return typed AlreadyInitialized error instead of panic in clinic…#199
Emeka000 merged 1 commit intoHealthy-Stellar:mainfrom
abore9769:fix/issue-169-clinical-trial-init-conflict

Conversation

@abore9769
Copy link
Copy Markdown
Contributor

…al-trial

Closes #169

  • Added AlreadyInitialized = 18 variant to Error enum
  • initialize() now returns Result<(), Error> instead of panicking
  • Renamed contract struct to ClinicalTrialContract to resolve name conflict with types::ClinicalTrial
  • Fixed pre-existing BytesN/Hash type mismatch in export_deidentified_data
  • Added clinical-trial to workspace members in Cargo.toml
  • Updated tests to assert typed AlreadyInitialized error via try_initialize

…al-trial

Closes Healthy-Stellar#169

- Added AlreadyInitialized = 18 variant to Error enum
- initialize() now returns Result<(), Error> instead of panicking
- Renamed contract struct to ClinicalTrialContract to resolve name conflict with types::ClinicalTrial
- Fixed pre-existing BytesN/Hash type mismatch in export_deidentified_data
- Added clinical-trial to workspace members in Cargo.toml
- Updated tests to assert typed AlreadyInitialized error via try_initialize
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@abore9769 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Emeka000 Emeka000 merged commit 66fd092 into Healthy-Stellar:main Mar 30, 2026
1 check 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.

Remove panic-based initialization guard in clinical-trial

2 participants