Open PaulRBerg opened 3 years ago
When there are two (or more?) contracts that share the same name, but which have a different letter case, TypeChain fails to generate the bindings correctly.
yarn
yarn build
.env
.env.example
yarn workspace @hifi/flash-swap typechain
packages/flash-swap/typechain/IErc20.d.ts
You should see the same output as in this gist. Notice that:
IErc20.d.ts
IERC20
IERC20.d.ts
typechain
At a quick glance, normalizeName doesn't seem to cause IERC20 to IErc20. Need to investigate what causes that.
IErc20
Description
When there are two (or more?) contracts that share the same name, but which have a different letter case, TypeChain fails to generate the bindings correctly.
Reproduction
yarn
yarn build
.env
file by following the.env.example
yarn workspace @hifi/flash-swap typechain
packages/flash-swap/typechain/IErc20.d.ts
file.You should see the same output as in this gist. Notice that:
IErc20.d.ts
, although the class defined inside isIERC20
.IERC20.d.ts
file in thetypechain
folder.Possible Solutions
Environment