From 9a0217db2e62ce3e281a6fd861296114833bb8d3 Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Sat, 17 Feb 2024 11:27:11 +0800 Subject: [PATCH] fix: log --- src/generate/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generate/index.ts b/src/generate/index.ts index 2f36699..b46fc0e 100644 --- a/src/generate/index.ts +++ b/src/generate/index.ts @@ -16,7 +16,7 @@ export async function generateContracts( const batch = new YBatch({ concurrency: 16 }); for (const cname of contracts) { await batch.add(async () => { - console.log(`Generating contract ${principal}.${cname}`); + console.log(`Generating contract ${typeof principal === 'string' ? principal : principal(cname)}.${cname}`); await generateContractFromAbi({ apiHost: typeof apiHost === 'string' ? apiHost : apiHost(cname) , principal: typeof principal === 'string' ? principal : principal(cname),