diff --git a/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js b/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js index d5a933cbbf..6a7dceaad3 100644 --- a/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js +++ b/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js @@ -75,8 +75,14 @@ export default class FetchAndCompile extends Plugin { let name = network.name.toLowerCase() name === 'main' ? 'mainnet' : name // source-verifier api expect "mainnet" and not "main" - await this.call('manager', 'activatePlugin', 'source-verification') - const data = await this.call('source-verification', 'fetch', contractAddress, name.toLowerCase()) + let data + try { + data = await this.call('source-verification', 'fetch', contractAddress, name.toLowerCase()) + } catch (e) { + setTimeout(_ => this.emit('sourceVerificationNotAvailable'), 0) + this.unresolvedAddresses.push(contractAddress) + return localCompilation() + } if (!data || !data.metadata) { setTimeout(_ => this.emit('notFound', contractAddress), 0) this.unresolvedAddresses.push(contractAddress) diff --git a/src/app/tabs/debugger-tab.js b/src/app/tabs/debugger-tab.js index f25b13e1c6..c5bccd87a6 100644 --- a/src/app/tabs/debugger-tab.js +++ b/src/app/tabs/debugger-tab.js @@ -50,11 +50,16 @@ class DebuggerTab extends ViewPlugin { toaster(yo`