Skip to content

Throw an error on conflict when inserting a verified_contract #2176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from

Conversation

manuelwedler
Copy link
Contributor

@manuelwedler manuelwedler commented May 26, 2025

Closes #2167

This will make the verification job fail, if the server cannot store a new verified_contract due to a conflict with the constraints. The error code of the job will be an internal_error because, in future, this case should not be encountered regularly and generally points to a bug on our side. We only have it in #2092 because the contracts were verified with a buggy version of Sourcify before.

Also:

  • Removes the storageService reference from SourcifyDatabaseService because it was not used
  • Corrects the StorageLayout type which didn't match the actual values of this type

Removes the storageService reference from SourcifyDatabaseService because it was not used
Corrects the StorageLayout type which didn't match the VerificationExport before
@manuelwedler manuelwedler moved this from Triage to Sprint - Needs Review in Sourcify Public May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Sprint - Needs Review
Development

Successfully merging this pull request may close these issues.

GET /v2/verify/{verification_id} returns wrong verified_contract after creation match upgrade
1 participant