diff --git a/apps/remix-ide-e2e/src/tests/editor.test.ts b/apps/remix-ide-e2e/src/tests/editor.test.ts index 6f095e8312..f78a229498 100644 --- a/apps/remix-ide-e2e/src/tests/editor.test.ts +++ b/apps/remix-ide-e2e/src/tests/editor.test.ts @@ -17,7 +17,7 @@ module.exports = { .openFile('contracts') .openFile('contracts/1_Storage.sol') .waitForElementVisible('#editorView') - .checkElementStyle('.view-lines', 'font-size', '12px') + .checkElementStyle('.view-lines', 'font-size', '14px') .click('*[data-id="tabProxyZoomIn"]') .click('*[data-id="tabProxyZoomIn"]') .checkElementStyle('.view-lines', 'font-size', '16.8px') @@ -29,7 +29,7 @@ module.exports = { .checkElementStyle('.view-lines', 'font-size', '16.8px') .click('*[data-id="tabProxyZoomOut"]') .click('*[data-id="tabProxyZoomOut"]') - .checkElementStyle('.view-lines', 'font-size', '12px') + .checkElementStyle('.view-lines', 'font-size', '14px') }, 'Should display compile error in editor #group1': function (browser: NightwatchBrowser) { diff --git a/apps/vyper/src/app/utils/remix-client.tsx b/apps/vyper/src/app/utils/remix-client.tsx index 16da93b4a5..2bfea726ba 100644 --- a/apps/vyper/src/app/utils/remix-client.tsx +++ b/apps/vyper/src/app/utils/remix-client.tsx @@ -5,9 +5,11 @@ import {PluginClient} from '@remixproject/plugin' import {Contract, compileContract} from './compiler' import {ExampleContract} from '../components/VyperResult' import EventEmitter from 'events' +import { Plugin } from "@remixproject/engine"; +import { CustomRemixApi } from '@remix-api' export type VyperComplierAddress = 'https://vyper2.remixproject.org/' | 'http://localhost:8000/' -export class RemixClient extends PluginClient { +export class RemixClient extends PluginClient { private client = createClient>(this) compilerUrl: VyperComplierAddress = 'https://vyper2.remixproject.org/' compilerOutput: any @@ -81,17 +83,14 @@ export class RemixClient extends PluginClient { try { // @ts-ignore this.call('notification', 'toast', 'cloning Snekmate Vyper repository...') - - await this.call('manager', 'activatePlugin', 'dgitApi') - /* + await this.call( 'dgitApi', 'clone', - {url: 'https://github.com/pcaversaccio/snekmate', token: null, branch: 'v0.0.5'}, - // @ts-ignore - 'snekmate' + {url: 'https://github.com/pcaversaccio/snekmate', token: null, branch: 'v0.0.5', workspaceName: 'snekmate'}, ) - */ + + this.call( // @ts-ignore 'notification',