You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With v5.0.0 Truffle moved from Web3.js v0.x to v1.x. One of major change in it: use of BN.js instead of bignumber.js. This change affects types generated by TypeChain.
This is addressed in a pull-request #184, but as @krzkaczor commented there, a new target should be introduced for that.
I've tried to implement this change: https://github.com/pash7ka/TypeChain/tree/bignumber-to-bn and almost done it, but it required not only cloning target directories, but also renaming packages.
(typechain-target-truffle become typechain-target-truffle-v4, a new one become typechain-target-truffle-v5).
Should i go forward with this change, which will require all current users of typechain-target-truffle to update package name, or it doesn't worth it?
Or maybe just introduce typechain-target-truffle-v5 and leave typechain-target-truffle for v4? (current version of my repository implements this aproach)
The text was updated successfully, but these errors were encountered:
@pash7ka sorry for the late response. Yes I think you can go ahead without changing anything in the already existing target. We can make the final decision after merging your new target.
I don't consider renaming an already existing target to be a big deal since it's not breaking anything for already existing users. They just need to remove old package and add new if they want to keep receiving updates.
With v5.0.0 Truffle moved from Web3.js v0.x to v1.x. One of major change in it: use of BN.js instead of bignumber.js. This change affects types generated by TypeChain.
This is addressed in a pull-request #184, but as @krzkaczor commented there, a new target should be introduced for that.
I've tried to implement this change: https://github.com/pash7ka/TypeChain/tree/bignumber-to-bn and almost done it, but it required not only cloning target directories, but also renaming packages.
(
typechain-target-truffle
becometypechain-target-truffle-v4
, a new one becometypechain-target-truffle-v5
).Should i go forward with this change, which will require all current users of
typechain-target-truffle
to update package name, or it doesn't worth it?Or maybe just introduce
typechain-target-truffle-v5
and leavetypechain-target-truffle
for v4? (current version of my repository implements this aproach)The text was updated successfully, but these errors were encountered: