Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class ContractVerificationPluginClient extends PluginClient {
await this.call('terminal', 'log', { type: 'log', value: `Verifying with ${providerName}...` })

if (providerName === 'Etherscan' || providerName === 'Routescan' || providerName === 'Blockscout') {
await new Promise(resolve => setTimeout(resolve, 10000))
await new Promise(resolve => setTimeout(resolve, 9000))
}

if (verifier && typeof verifier.verify === 'function') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class EtherscanVerifier extends AbstractVerifier {

if (!response.ok) {
const responseText = await response.text()
console.error('Error on Etherscan API check verification status at ' + this.apiUrl + '\nStatus: ' + response.status + '\nResponse: ' + responseText)
console.error('Error on API check verification status at ' + this.apiUrl + '\nStatus: ' + response.status + '\nResponse: ' + responseText)
throw new Error(responseText)
}

Expand All @@ -163,12 +163,12 @@ export class EtherscanVerifier extends AbstractVerifier {
return { status: 'already verified', receiptId }
}
if (checkStatusResponse.result === 'Unknown UID') {
console.error('Error on Etherscan API check verification status at ' + this.apiUrl + '\nStatus: ' + checkStatusResponse.status + '\nMessage: ' + checkStatusResponse.message + '\nResult: ' + checkStatusResponse.result)
console.error('Error on API check verification status at ' + this.apiUrl + '\nStatus: ' + checkStatusResponse.status + '\nMessage: ' + checkStatusResponse.message + '\nResult: ' + checkStatusResponse.result)
return { status: 'failed', receiptId, message: checkStatusResponse.result }
}

if (checkStatusResponse.status !== '1' || !checkStatusResponse.message.startsWith('OK')) {
console.error('Error on Etherscan API check verification status at ' + this.apiUrl + '\nStatus: ' + checkStatusResponse.status + '\nMessage: ' + checkStatusResponse.message + '\nResult: ' + checkStatusResponse.result)
console.error('Error on API check verification status at ' + this.apiUrl + '\nStatus: ' + checkStatusResponse.status + '\nMessage: ' + checkStatusResponse.message + '\nResult: ' + checkStatusResponse.result)
throw new Error(checkStatusResponse.result)
}

Expand Down
2 changes: 1 addition & 1 deletion apps/contract-verification/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const App = () => {
setSubmittedContracts((prev) => Object.assign({}, prev, changedSubmittedContracts))
}

timer.current = setInterval(pollStatus, 1000)
timer.current = setInterval(pollStatus, 3000)
}
}, [submittedContracts])

Expand Down