Skip to content

Commit 283a76e

Browse files
committed
Handle already verified status in Sourcify verification response
1 parent 68c4606 commit 283a76e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/contract-verification/src/app/Verifiers/SourcifyVerifier.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ export class SourcifyVerifier extends AbstractVerifier {
134134
}
135135

136136
if (checkStatusResponse.error) {
137+
if (checkStatusResponse.error.customCode === 'already_verified') {
138+
return { status: 'already verified', receiptId, message: checkStatusResponse.error.message }
139+
}
137140
const message = checkStatusResponse.error.message || 'Unknown error'
138141
return { status: 'failed', receiptId, message }
139142
}

0 commit comments

Comments
 (0)