Revert "use second opt arg in "execute""

This reverts commit 8fb925efd2.
pull/3485/head^2
yann300 2 years ago
parent 8fb925efd2
commit 8f3352bd78
  1. 2
      apps/remix-ide/src/app/tabs/compile-and-run.ts
  2. 2
      libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

@ -62,7 +62,7 @@ export class CompileAndRun extends Plugin {
if (clearAllInstances) {
await this.call('udapp', 'clearAllInstances')
}
await this.call('scriptRunner', 'execute', content, fileName)
await this.call('scriptRunner', 'execute', content)
} catch (e) {
this.call('notification', 'toast', e.message || e)
}

@ -153,7 +153,7 @@ export const TabsUI = (props: TabsUIProps) => {
const path = active().substr(active().indexOf('/') + 1, active().length)
const content = await props.plugin.call('fileManager', "readFile", path)
if (tabsState.currentExt === 'js' || tabsState.currentExt === 'ts') {
await props.plugin.call('scriptRunner', 'execute', content, path)
await props.plugin.call('scriptRunner', 'execute', content)
_paq.push(['trackEvent', 'editor', 'clickRunFromEditor', tabsState.currentExt])
} else if (tabsState.currentExt === 'sol' || tabsState.currentExt === 'yul') {
await props.plugin.call('solidity', 'compile', path)

Loading…
Cancel
Save