From 4027b78cfb70911dfdebd53d3635e67f51aa28b6 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sun, 13 Oct 2024 05:20:25 +0200 Subject: [PATCH] deployForChainSpec now also includes output directory. --- scripts/deployForChainSpec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/deployForChainSpec.ts b/scripts/deployForChainSpec.ts index 1ab5d04..2ae0478 100644 --- a/scripts/deployForChainSpec.ts +++ b/scripts/deployForChainSpec.ts @@ -50,6 +50,10 @@ async function compileProxy() { constructor: proxyDeployTX.data }; + if (!fs.existsSync("out")) { + fs.mkdirSync("out"); + } + fs.writeFileSync("out/spec_dao.json", JSON.stringify(spec)); //spec[]