Skip to content

Commit 50eedf7

Browse files
committed
fix typechain ethers-v6 generate wrong types
Unfortunately there is a bug in typechain and we get some name clashes in the generated code. There is a PR that fixes this, but until it gets merged I’ve added a patch. More info on the name clash: dethcrypto/TypeChain#887 Once this PR is merged the patch could be removed.
1 parent 918f94b commit 50eedf7

File tree

4 files changed

+152
-11
lines changed

4 files changed

+152
-11
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"prepare": "yarn generate:types && yarn build",
4040
"prerelease": "yarn clean && yarn build && yarn build:sdk",
4141
"release": "yarn publish --access public",
42-
"verify": "yarn hardhat verify --network"
42+
"verify": "yarn hardhat verify --network",
43+
"postinstall": "patch-package"
4344
},
4445
"directories": {
4546
"test": "test"
@@ -76,14 +77,15 @@
7677
"hardhat-deploy": "^0.11.28",
7778
"hardhat-gas-reporter": "^1.0.9",
7879
"husky": "^8.0.1",
80+
"patch-package": "^8.0.0",
7981
"prettier": "^3.0.3",
8082
"prettier-plugin-solidity": "^1.1.3",
8183
"rimraf": "^5.0.1",
8284
"solhint": "^4.0.0",
8385
"solhint-plugin-prettier": "^0.1.0",
8486
"solidity-coverage": "^0.8.4",
8587
"ts-node": "^10.9.1",
86-
"typechain": "^8.3.0",
88+
"typechain": "^8.3.2",
8789
"typescript": "^5.2.2",
8890
"yargs": "^17.6.0"
8991
},

0 commit comments

Comments
 (0)