Merge pull request #3495 from ethereum/misc_fixes_2

Misc fixes
pull/3497/head^2
yann300 2 years ago committed by GitHub
commit f137e97e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/remix-ide/src/app/tabs/compile-and-run.ts
  2. 3
      libs/remix-ui/settings/src/lib/github-settings.tsx
  3. 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)
await this.call('scriptRunner', 'execute', content, fileName)
} catch (e) {
this.call('notification', 'toast', e.message || e)
}

@ -25,7 +25,8 @@ export function GithubSettings (props: GithubSettingsProps) {
}, [props.config])
const handleChangeTokenState = (event) => {
setGithubToken(event.target.value)
const token = event.target.value ? event.target.value.trim() : event.target.value
setGithubToken(token)
}
const handleChangeUserNameState = (event) => {

@ -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)
await props.plugin.call('scriptRunner', 'execute', content, path)
_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