From cbaf395f2a8343000effc746a756af57862dd53d Mon Sep 17 00:00:00 2001 From: DenysKarmazynDFINITY Date: Tue, 7 Jan 2025 16:49:23 +0100 Subject: [PATCH] fix(scripts): issue with generating certified candid --- scripts/did.update.types.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/did.update.types.mjs b/scripts/did.update.types.mjs index 688e680779..5b13afb8b6 100644 --- a/scripts/did.update.types.mjs +++ b/scripts/did.update.types.mjs @@ -105,7 +105,7 @@ const copyCertifiedFactory = async ({ dest = `./src/declarations` }) => { const certifiedFactoryPath = join(dest, dir, `${dir}.factory.certified.did.js`); - await writeFile(certifiedFactoryPath, content.toString().replace(/\['query']/g, '')); + await writeFile(certifiedFactoryPath, content.toString().replace(/\['query'],?/g, '')); resolve(); };