diff --git a/dapp-factory/pipeline/web3_pipeline.ts b/dapp-factory/pipeline/web3_pipeline.ts index 2d730f87..fb0064a8 100644 --- a/dapp-factory/pipeline/web3_pipeline.ts +++ b/dapp-factory/pipeline/web3_pipeline.ts @@ -1,3 +1,4 @@ +import * as crypto from 'crypto'; import * as fs from 'fs'; import * as path from 'path'; import { PromptEnforcer, executeStageWithPrompt } from './prompt_enforcer'; @@ -27,7 +28,6 @@ export class Web3Pipeline { // Generate run ID if not provided const timestamp = new Date().toISOString().replace(/[:.]/g, '-'); - const crypto = await import('crypto'); const ideaHash = crypto .createHash('md5') .update(config.idea) diff --git a/dapp-factory/web3factory.ts b/dapp-factory/web3factory.ts index fd359c4b..d1d27f8f 100644 --- a/dapp-factory/web3factory.ts +++ b/dapp-factory/web3factory.ts @@ -85,4 +85,7 @@ process.on('uncaughtException', (error) => { process.exit(1); }); -main().catch(console.error); +main().catch((err) => { + console.error(err); + process.exit(1); +});