tsc errors fix

pull/1634/head
lianahus 3 years ago
parent 77b0ccd8e6
commit af22cb09e3
  1. 2
      apps/remix-ide/src/app/tabs/compile-tab.js
  2. 2
      libs/remix-tests/src/run.ts
  3. 3
      libs/remixd/src/bin/remixd.ts

@ -127,7 +127,7 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA
try {
this.currentFile = await this.call('fileManager', 'file')
} catch (e) {
throw new Error(e)
this.currentFile = ''
}
}

@ -82,7 +82,7 @@ commander
const baseURL = 'https://binaries.soliditylang.org/wasm/'
const response: AxiosResponse = await axios.get(baseURL + 'list.json')
const { releases, latestRelease } = response.data
const compString = releases[compVersion]
const compString = releases ? releases[compVersion] : null
if (!compString) {
log.error(`No compiler found in releases with version ${compVersion}`)
process.exit()

@ -156,7 +156,8 @@ function errorHandler (error: any, service: string) {
console.error(e)
}
return data.includes(origin) ? data.includes(origin) : data.includes(domain)
const dataArray:string[] = data
return dataArray.includes(origin) ? dataArray.includes(origin) : dataArray.includes(domain)
} catch (e) {
try {
// eslint-disable-next-line

Loading…
Cancel
Save