From b649430e46d03b6b2f3814566d49cc4923becd29 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 29 Jun 2020 23:48:52 +0200 Subject: [PATCH] revert sourcify name --- .../app/compiler/compiler-sourceVerifier-fetchAndCompile.js | 2 +- apps/remix-ide/src/app/tabs/debugger-tab.js | 2 +- apps/remix-ide/src/app/ui/landing-page/landing-page.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js b/apps/remix-ide/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js index 566a5047ee..d608a8d061 100644 --- a/apps/remix-ide/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js +++ b/apps/remix-ide/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js @@ -72,7 +72,7 @@ export default class FetchAndCompile extends Plugin { name === 'main' ? 'mainnet' : name // source-verifier api expect "mainnet" and not "main" let data try { - data = await this.call('sourcify', 'fetchByNetwork', contractAddress, name.toLowerCase()) + data = await this.call('source-verification', 'fetchByNetwork', contractAddress, name.toLowerCase()) } catch (e) { setTimeout(_ => this.emit('notFound', contractAddress), 0) // plugin framework returns a time out error although it actually didn't find the source... this.unresolvedAddresses.push(contractAddress) diff --git a/apps/remix-ide/src/app/tabs/debugger-tab.js b/apps/remix-ide/src/app/tabs/debugger-tab.js index 3c15b4a5c9..132cf7d1ae 100644 --- a/apps/remix-ide/src/app/tabs/debugger-tab.js +++ b/apps/remix-ide/src/app/tabs/debugger-tab.js @@ -64,7 +64,7 @@ class DebuggerTab extends ViewPlugin { } ) - this.call('manager', 'activatePlugin', 'sourcify') + this.call('manager', 'activatePlugin', 'source-verification') // this.call('manager', 'activatePlugin', 'udapp') return this.el diff --git a/apps/remix-ide/src/app/ui/landing-page/landing-page.js b/apps/remix-ide/src/app/ui/landing-page/landing-page.js index 2ac74e8a5c..c62993ca32 100644 --- a/apps/remix-ide/src/app/ui/landing-page/landing-page.js +++ b/apps/remix-ide/src/app/ui/landing-page/landing-page.js @@ -163,8 +163,8 @@ export class LandingPage extends ViewPlugin { } const startSourceVerify = () => { this.appManager.ensureActivated('solidity') - this.appManager.ensureActivated('sourcify') - this.verticalIcons.select('sourcify') + this.appManager.ensureActivated('source-verification') + this.verticalIcons.select('source-verification') } const startPluginManager = () => { this.appManager.ensureActivated('pluginManager')