Compile storage for server side deploy

This commit is contained in:
Maksym Bykovskyy 2020-02-27 16:08:31 -08:00
parent cd3e7cf32f
commit 14397157a7

View File

@ -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());