Merge branch 'compile-storage-for-server-side-deploy' into 'dev'

Fix for compile storage for server side deploy

See merge request ligolang/ligo!462
This commit is contained in:
Jev Björsell 2020-02-28 00:52:36 +00:00
commit b969672596

View File

@ -40,10 +40,12 @@ export async function deployHandler(req: Request, res: Response) {
'json' 'json'
); );
const michelsonStorage = await new LigoCompiler().compileExpression( const michelsonStorage = await new LigoCompiler().compileStorage(
body.syntax, body.syntax,
body.storage, body.code,
'json' body.entrypoint,
'json',
body.storage
); );
await Tezos.importKey(await fetchRandomPrivateKey()); await Tezos.importKey(await fetchRandomPrivateKey());