Skip to content

Commit b45eb94

Browse files
committedMay 30, 2024
Fix pnpm wrongly handling deep peer deps
The @nomiclabs/truffle-contract package has peer dependencies on web3-eth-abi and web3-utils that for some reason are not being met by pnpm@9 (it complains that it can't find compatible versions, which is a lie). Installing the proper 1.10.4 versions as dev dependencies of @nomiclabs/hardhat-truffle5 seems to fix the problem.
1 parent 3c27724 commit b45eb94

File tree

2 files changed

+443
-426
lines changed

2 files changed

+443
-426
lines changed
 

‎packages/hardhat-truffle5/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
"rimraf": "^3.0.2",
6363
"ts-node": "^10.8.0",
6464
"typescript": "~5.0.0",
65-
"web3": "^1.0.0-beta.36"
65+
"web3": "^1.0.0-beta.36",
66+
"web3-eth-abi": "1.10.4",
67+
"web3-utils": "1.10.4"
6668
},
6769
"peerDependencies": {
6870
"@nomiclabs/hardhat-web3": "workspace:^2.0.0",

0 commit comments

Comments
 (0)