File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
legacy_packages/sdk/src/evm
packages/thirdweb/src/contract/verification Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @thirdweb-dev/sdk " : patch
3
+ " thirdweb " : patch
4
+ ---
5
+
6
+ Verification status in progress
Original file line number Diff line number Diff line change @@ -261,7 +261,10 @@ export async function checkVerificationStatus(
261
261
262
262
const data = await result . json ( ) ;
263
263
264
- if ( data ?. result !== VerificationStatus . PENDING ) {
264
+ if (
265
+ data ?. result !== VerificationStatus . PENDING &&
266
+ data ?. result !== VerificationStatus . IN_PROGRESS
267
+ ) {
265
268
clearInterval ( intervalId ) ;
266
269
resolve ( data ) ;
267
270
}
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export const VerificationStatus = {
18
18
FAILED : "Fail - Unable to verify" ,
19
19
SUCCESS : "Pass - Verified" ,
20
20
PENDING : "Pending in queue" ,
21
+ IN_PROGRESS : "In progress" ,
21
22
ALREADY_VERIFIED : "Contract source code already verified" ,
22
23
AUTOMATICALLY_VERIFIED : "Already Verified" ,
23
24
} ;
Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ const VerificationStatus = {
145
145
FAILED : "Fail - Unable to verify" ,
146
146
SUCCESS : "Pass - Verified" ,
147
147
PENDING : "Pending in queue" ,
148
+ IN_PROGRESS : "In progress" ,
148
149
ALREADY_VERIFIED : "Contract source code already verified" ,
149
150
AUTOMATICALLY_VERIFIED : "Already Verified" ,
150
151
} ;
@@ -185,7 +186,10 @@ export async function checkVerificationStatus(
185
186
186
187
const data = await result . json ( ) ;
187
188
188
- if ( data ?. result !== VerificationStatus . PENDING ) {
189
+ if (
190
+ data ?. result !== VerificationStatus . PENDING &&
191
+ data ?. result !== VerificationStatus . IN_PROGRESS
192
+ ) {
189
193
clearInterval ( intervalId ) ;
190
194
resolve ( data ) ;
191
195
}
You can’t perform that action at this time.
0 commit comments