You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(errMsg.includes('does not exist')||errMsg.includes('Unable to locate ContractCode')||errMsg.includes('not found')||errMsg.includes('500')||errMsg.includes('404')){
200
207
awaitnewPromise(r=>setTimeout(r,3000))
201
208
continue
202
209
}
@@ -206,7 +213,7 @@ export class ContractVerificationPluginClient extends PluginClient {
206
213
207
214
if(!isExplorerReady){
208
215
constmsg=`Contract not found on ${verifierId} after 30s. Explorer indexing timed out.`
awaitthis.call('terminal','log',{type: 'warn',value: `[${verifierId}] Please open the "Contract Verification" plugin to retry.`})
243
250
244
251
if(verifierId==='Etherscan'&&!pluginApiKey){
245
-
awaitthis.call('terminal','log',{type: 'warn',value: `Note: To retry Etherscan verification in the plugin, you must save your API key in the plugin settings.`})
252
+
awaitthis.call('terminal','log',{type: 'info',value: `Note: To retry Etherscan verification in the plugin, you must save your API key in the plugin settings.`})
awaitthis.call('terminal','log',{type: 'warn',value: `[${verifierId}] Please open the "Contract Verification" plugin to retry.`})
265
272
266
273
if(verifierId==='Etherscan'&&!pluginApiKey){
267
-
awaitthis.call('terminal','log',{type: 'warn',value: `Note: To retry Etherscan verification in the plugin, you must save your API key in the plugin settings.`})
274
+
awaitthis.call('terminal','log',{type: 'info',value: `Note: To retry Etherscan verification in the plugin, you must save your API key in the plugin settings.`})
if(receipt.message!=='Verification timed out (30s).'){
208
-
plugin.call('terminal','log',{type: 'warn',value: `[${verifierInfo.name}] Verification Failed: Please open the "Contract Verification" plugin to retry.`})
198
+
}elseif(status==='failed'){
199
+
if(message==='Verification timed out (30s limit).'){
200
+
plugin.call('terminal','log',{type: 'warn',value: `[${verifierInfo.name}] Polling timed out. Please open the "Contract Verification" plugin to check details.`})
plugin.call('terminal','log',{type: 'warn',value: `Note: To retry Etherscan verification in the plugin, you must save your API key in the plugin settings.`})
207
+
plugin.call('terminal','log',{type: 'info',value: `Note: To retry Etherscan verification in the plugin, you must save your API key in the plugin settings.`})
plugin.call('terminal','log',{type: 'warn',value: `[${verifierInfo.name}] Verification Failed after ${receipt.failedChecks} attempts: ${errorMsg}`})
231
-
plugin.call('terminal','log',{type: 'warn',value: `Please open the "Contract Verification" plugin to retry.`})
227
+
if(errorMsg.includes('404')){
228
+
plugin.call('terminal','log',{type: 'warn',value: `[${verifierInfo.name}] Polling timed out (404). Please open the "Contract Verification" plugin to check details.`})
229
+
}else{
230
+
plugin.call('terminal','log',{type: 'warn',value: `[${verifierInfo.name}] Verification Failed after ${receipt.failedChecks} attempts: ${errorMsg}`})
231
+
plugin.call('terminal','log',{type: 'warn',value: `Please open the "Contract Verification" plugin to retry.`})
plugin.call('terminal','log',{type: 'warn',value: `Note: To retry Etherscan verification in the plugin, you must save your API key in the plugin settings.`})
235
+
plugin.call('terminal','log',{type: 'info',value: `Note: To retry Etherscan verification in the plugin, you must save your API key in the plugin settings.`})
0 commit comments