Fixed broken build

pull/1575/head
ioedeveloper 3 years ago
parent 4745462b73
commit 0d917c1fb2
  1. 2
      libs/remix-tests/src/run.ts
  2. 3
      libs/remix-ui/workspace/src/lib/actions/workspace.ts
  3. 2
      libs/remixd/src/bin/remixd.ts
  4. 7215
      package-lock.json
  5. 2
      package.json

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

@ -1,3 +1,4 @@
import React from 'react'
import { bufferToHex, keccakFromString } from 'ethereumjs-util'
import axios, { AxiosResponse } from 'axios'
import { addInputFieldSuccess, createWorkspaceError, createWorkspaceRequest, createWorkspaceSuccess, displayNotification, fetchWorkspaceDirectoryError, fetchWorkspaceDirectoryRequest, fetchWorkspaceDirectorySuccess, hideNotification, setCurrentWorkspace, setMode, setReadOnlyMode, setRenameWorkspace } from './payload'
@ -95,7 +96,7 @@ export const loadWorkspacePreset = async (template: 'gist-template' | 'code-temp
try {
const gistId = params.gist
const response: AxiosResponse = await axios.get(`https://api.github.com/gists/${gistId}`)
const data = response.data
const data = response.data as { files: any }
if (!data.files) {
return dispatch(displayNotification('Gist load error', 'No files found', 'OK', null, () => { dispatch(hideNotification()) }, null))

@ -148,7 +148,7 @@ function errorHandler (error: any, service: string) {
const gistUrl = 'https://gist.githubusercontent.com/EthereumRemix/091ccc57986452bbb33f57abfb13d173/raw/3367e019335746b73288e3710af2922d4c8ef5a3/origins.json'
try {
const { data } = await Axios.get(gistUrl)
const { data } = (await Axios.get(gistUrl)) as { data: any }
try {
await writeJSON(path.resolve(path.join(__dirname, '..', 'origins.json')), { data })

7215
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -99,7 +99,7 @@
"watch": "watchify apps/remix-ide/src/index.js -dv -p browserify-reload -o apps/remix-ide/build/app.js --exclude solc",
"reinstall": "rm ./node-modules/ -rf && rm package-lock.json && rm ./build/ -rf && npm install & npm run build",
"ganache-cli": "npx ganache-cli"
},
},
"browserify": {
"transform": [
[

Loading…
Cancel
Save