Skip to content

fix(access-control): replace initialize panic with typed ContractError#202

Merged
Emeka000 merged 2 commits intoHealthy-Stellar:mainfrom
Mozez155:fix/166-access-control-initialize-typed-error
Mar 30, 2026
Merged

fix(access-control): replace initialize panic with typed ContractError#202
Emeka000 merged 2 commits intoHealthy-Stellar:mainfrom
Mozez155:fix/166-access-control-initialize-typed-error

Conversation

@Mozez155
Copy link
Copy Markdown

Closes #166

  • Add AlreadyInitialized = 2 to ContractError enum
  • Convert initialize() to return Result<(), ContractError>
  • Update test_double_initialize to assert Err(Ok(ContractError::AlreadyInitialized))

Closes Healthy-Stellar#166

- Add AlreadyInitialized = 2 to ContractError enum
- Convert initialize() to return Result<(), ContractError>
- Update test_double_initialize to assert Err(Ok(ContractError::AlreadyInitialized))
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@Mozez155 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 b7b2bb1 into Healthy-Stellar:main Mar 30, 2026
1 check failed
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.

Replace panic-based initialization errors in access-control

2 participants