Skip to content

Add defensive checks in getDeployedContract for missing data#1040

Open
sashass1315 wants to merge 1 commit intosemaphore-protocol:mainfrom
sashass1315:chore/defensive-checks-getDeployedContract
Open

Add defensive checks in getDeployedContract for missing data#1040
sashass1315 wants to merge 1 commit intosemaphore-protocol:mainfrom
sashass1315:chore/defensive-checks-getDeployedContract

Conversation

@sashass1315
Copy link

Add explicit errors when no deployed contracts exist for a supported network.
Add explicit error when the 'Semaphore' contract is not found for that network.
These changes prevent opaque runtime crashes caused by non-null assertions and unsafe casts, and align error handling with patterns used in packages/contracts/scripts/utils.ts.

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