console.error('Error on Etherscan API verification at '+this.apiUrl+'\nStatus: '+verificationResponse.status+'\nMessage: '+verificationResponse.message+'\nResult: '+verificationResponse.result)
@ -89,9 +89,7 @@ export class EtherscanVerifier extends AbstractVerifier {
url.searchParams.append('apikey',this.apiKey)
}
constresponse=awaitfetch(url.href,{
method:'GET',
})
constresponse=awaitfetch(url.href,{method:'GET'})
if(!response.ok){
constresponseText=awaitresponse.text()
@ -125,13 +123,32 @@ export class EtherscanVerifier extends AbstractVerifier {
returnstatus
}
asynclookup():Promise<any>{
// TODO type
// Implement the lookup logic here
console.log('Etherscan lookup started')
// Placeholder logic for lookup
constlookupResult={}// Replace with actual lookup logic
console.error('Error on Etherscan API lookup at '+this.apiUrl+'\nStatus: '+lookupResponse.status+'\nMessage: '+lookupResponse.message+'\nResult: '+lookupResponse.result)