diff --git a/tools/webide/packages/client/src/components/configure/configure-tab.tsx b/tools/webide/packages/client/src/components/configure/configure-tab.tsx index 138b04fab..620e72356 100644 --- a/tools/webide/packages/client/src/components/configure/configure-tab.tsx +++ b/tools/webide/packages/client/src/components/configure/configure-tab.tsx @@ -7,7 +7,7 @@ import { DeployAction } from '../../redux/actions/deploy'; import { DryRunAction } from '../../redux/actions/dry-run'; import { EvaluateFunctionAction } from '../../redux/actions/evaluate-function'; import { EvaluateValueAction } from '../../redux/actions/evaluate-value'; -import { GenerateDeployScript } from '../../redux/actions/generate-deploy-script'; +import { GenerateDeployScriptAction } from '../../redux/actions/generate-deploy-script'; import { AppState } from '../../redux/app'; import { ChangeDispatchedAction, ChangeSelectedAction, CommandState } from '../../redux/command'; import { Command } from '../../redux/types'; @@ -77,7 +77,7 @@ function createAction(command: Command) { case Command.EvaluateFunction: return new EvaluateFunctionAction(); case Command.GenerateDeployScript: - return new GenerateDeployScript(); + return new GenerateDeployScriptAction(); default: throw new Error('Unsupported command'); } diff --git a/tools/webide/packages/client/src/redux/actions/generate-deploy-script.ts b/tools/webide/packages/client/src/redux/actions/generate-deploy-script.ts index 049cbd1a0..24a464b13 100644 --- a/tools/webide/packages/client/src/redux/actions/generate-deploy-script.ts +++ b/tools/webide/packages/client/src/redux/actions/generate-deploy-script.ts @@ -22,7 +22,7 @@ export async function fetchRandomPrivateKey(): Promise { return response.text(); } -export class GenerateDeployScript extends CancellableAction { +export class GenerateDeployScriptAction extends CancellableAction { getAction() { return async (dispatch: Dispatch, getState: () => AppState) => { dispatch({ ...new UpdateLoadingAction('Compiling contract...') }); diff --git a/tools/webide/packages/server/package.json b/tools/webide/packages/server/package.json index 2e6f5ab38..621ed7d05 100644 --- a/tools/webide/packages/server/package.json +++ b/tools/webide/packages/server/package.json @@ -11,16 +11,16 @@ }, "devDependencies": { "@ts-tools/node": "^1.0.0", + "@types/cors": "^2.8.6", "@types/express": "^4.17.1", "@types/express-winston": "^3.0.4", "@types/hapi__joi": "^16.0.1", "@types/jest": "^24.0.23", "@types/joi": "^14.3.3", "@types/node": "10", + "@types/node-fetch": "^2.5.4", "@types/tmp": "^0.1.0", "@types/winston": "^2.4.4", - "@types/cors": "^2.8.6", - "@types/node-fetch": "^2.5.4", "jest": "^24.9.0", "nodemon": "^1.19.3", "ts-jest": "^24.1.0", @@ -40,6 +40,7 @@ "express": "^4.17.1", "express-prometheus-middleware": "^0.8.5", "express-winston": "^4.0.1", + "gensync": "^1.0.0-beta.1", "node-fetch": "^2.6.0", "sanitize-html": "^1.20.1", "tmp": "^0.1.0",