Skip to content

fix: critical web3pipeline constructor bug breaking dapp factory#220

Open
0xAxiom wants to merge 2 commits intomainfrom
fix/critical-web3pipeline-constructor-bug
Open

fix: critical web3pipeline constructor bug breaking dapp factory#220
0xAxiom wants to merge 2 commits intomainfrom
fix/critical-web3pipeline-constructor-bug

Conversation

@0xAxiom
Copy link
Copy Markdown
Owner

@0xAxiom 0xAxiom commented Mar 23, 2026

What

Fixed critical syntax error in Web3Pipeline constructor that completely broke the dApp factory pipeline

Why

CRITICAL BUG: inside a non-async constructor is illegal JavaScript syntax and prevents the Web3Pipeline class from being instantiated.

Impact: The entire dapp-factory pipeline was non-functional - any attempt to create a dApp would fail with syntax error.

Changes

  • Moved crypto import to top-level (it's a Node.js built-in, no dynamic import needed)
  • Removed illegal await from constructor
  • One line change with massive impact

Root Cause

Constructor was trying to dynamically import a Node.js built-in module asynchronously within a synchronous constructor, which is syntactically invalid.

Tested

  • ✅ Syntax error resolved
  • ✅ Web3Pipeline can now be instantiated
  • ✅ dApp factory pipeline is functional again
  • ✅ ESLint and Prettier pass

Priority: CRITICAL - This was blocking the entire dApp generation pipeline.

Identified via comprehensive code quality review.

- Moved crypto import to top-level import (Node.js built-in)
- Removed illegal await from non-async constructor
- Fixes syntax error preventing Web3Pipeline instantiation
- Resolves complete dapp-factory pipeline breakage identified in code review
@0xAxiom 0xAxiom requested a review from MeltedMindz as a code owner March 23, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant