From 14397157a75a83dbdc1fe905a490c4da8091a22a Mon Sep 17 00:00:00 2001 From: Maksym Bykovskyy Date: Thu, 27 Feb 2020 16:08:31 -0800 Subject: [PATCH] Compile storage for server side deploy --- tools/webide/packages/server/src/handlers/deploy.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/webide/packages/server/src/handlers/deploy.ts b/tools/webide/packages/server/src/handlers/deploy.ts index 0fabd925f..2d24dfd3e 100644 --- a/tools/webide/packages/server/src/handlers/deploy.ts +++ b/tools/webide/packages/server/src/handlers/deploy.ts @@ -40,10 +40,12 @@ export async function deployHandler(req: Request, res: Response) { 'json' ); - const michelsonStorage = await new LigoCompiler().compileExpression( + const michelsonStorage = await new LigoCompiler().compileStorage( body.syntax, - body.storage, - 'json' + body.code, + body.entrypoint, + 'json', + body.storage ); await Tezos.importKey(await fetchRandomPrivateKey());