From a0f37cc7e1778076d2093d3c30d96667a9576a7d Mon Sep 17 00:00:00 2001 From: Stalin <161853795+0x5t4l1n@users.noreply.github.com> Date: Mon, 3 Aug 2026 00:59:48 +0530 Subject: [PATCH] fix: pin @polkadot/util to single version to prevent typechain-polkadot crash Resolves #200. When a second contract is added via `swanky contract new`, npm installs @727-ventures/typechain-polkadot which brings in its own conflicting @polkadot/util version. The multiple-version conflict causes typechain-polkadot to fail finding its .hbs templates, breaking `swanky contract compile --all`. Add an overrides block so npm resolves all @polkadot/util references to the version already declared in dependencies (12.6.2). --- package.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.json b/package.json index a53ec9b..5f1dfe6 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,12 @@ "/npm-shrinkwrap.json", "/oclif.manifest.json" ], + "overrides": { + "@polkadot/util": "12.6.2", + "@727-ventures/typechain-polkadot": { + "@polkadot/util": "12.6.2" + } + }, "dependencies": { "@iarna/toml": "^2.2.5", "@oclif/core": "3.24.0",