Compile storage for server side deploy
This commit is contained in:
parent
cd3e7cf32f
commit
14397157a7
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user