update GenerateDeployScript back to GenerateDeployScriptAction in generate-deploy-script.ts

This commit is contained in:
Edmond Lee 2020-05-22 10:56:27 -07:00 committed by Jev Björsell
parent 22b0c9ec46
commit 85c08d8ad3
No known key found for this signature in database
GPG Key ID: 03F50CB91981EC9E
3 changed files with 6 additions and 5 deletions

View File

@ -7,7 +7,7 @@ import { DeployAction } from '../../redux/actions/deploy';
import { DryRunAction } from '../../redux/actions/dry-run'; import { DryRunAction } from '../../redux/actions/dry-run';
import { EvaluateFunctionAction } from '../../redux/actions/evaluate-function'; import { EvaluateFunctionAction } from '../../redux/actions/evaluate-function';
import { EvaluateValueAction } from '../../redux/actions/evaluate-value'; 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 { AppState } from '../../redux/app';
import { ChangeDispatchedAction, ChangeSelectedAction, CommandState } from '../../redux/command'; import { ChangeDispatchedAction, ChangeSelectedAction, CommandState } from '../../redux/command';
import { Command } from '../../redux/types'; import { Command } from '../../redux/types';
@ -77,7 +77,7 @@ function createAction(command: Command) {
case Command.EvaluateFunction: case Command.EvaluateFunction:
return new EvaluateFunctionAction(); return new EvaluateFunctionAction();
case Command.GenerateDeployScript: case Command.GenerateDeployScript:
return new GenerateDeployScript(); return new GenerateDeployScriptAction();
default: default:
throw new Error('Unsupported command'); throw new Error('Unsupported command');
} }

View File

@ -22,7 +22,7 @@ export async function fetchRandomPrivateKey(): Promise<string> {
return response.text(); return response.text();
} }
export class GenerateDeployScript extends CancellableAction { export class GenerateDeployScriptAction extends CancellableAction {
getAction() { getAction() {
return async (dispatch: Dispatch, getState: () => AppState) => { return async (dispatch: Dispatch, getState: () => AppState) => {
dispatch({ ...new UpdateLoadingAction('Compiling contract...') }); dispatch({ ...new UpdateLoadingAction('Compiling contract...') });

View File

@ -11,16 +11,16 @@
}, },
"devDependencies": { "devDependencies": {
"@ts-tools/node": "^1.0.0", "@ts-tools/node": "^1.0.0",
"@types/cors": "^2.8.6",
"@types/express": "^4.17.1", "@types/express": "^4.17.1",
"@types/express-winston": "^3.0.4", "@types/express-winston": "^3.0.4",
"@types/hapi__joi": "^16.0.1", "@types/hapi__joi": "^16.0.1",
"@types/jest": "^24.0.23", "@types/jest": "^24.0.23",
"@types/joi": "^14.3.3", "@types/joi": "^14.3.3",
"@types/node": "10", "@types/node": "10",
"@types/node-fetch": "^2.5.4",
"@types/tmp": "^0.1.0", "@types/tmp": "^0.1.0",
"@types/winston": "^2.4.4", "@types/winston": "^2.4.4",
"@types/cors": "^2.8.6",
"@types/node-fetch": "^2.5.4",
"jest": "^24.9.0", "jest": "^24.9.0",
"nodemon": "^1.19.3", "nodemon": "^1.19.3",
"ts-jest": "^24.1.0", "ts-jest": "^24.1.0",
@ -40,6 +40,7 @@
"express": "^4.17.1", "express": "^4.17.1",
"express-prometheus-middleware": "^0.8.5", "express-prometheus-middleware": "^0.8.5",
"express-winston": "^4.0.1", "express-winston": "^4.0.1",
"gensync": "^1.0.0-beta.1",
"node-fetch": "^2.6.0", "node-fetch": "^2.6.0",
"sanitize-html": "^1.20.1", "sanitize-html": "^1.20.1",
"tmp": "^0.1.0", "tmp": "^0.1.0",