New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
truffle-v5: Some properties of Truffle.ContractInstance
are missing
#315
Comments
I try to solve this issue |
Great! We'll be waiting for a PR :) |
Hi there! is it the 'setProvider' method missing too ? https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html |
@julianlen |
@krzkaczor I found out that there are two ways to resolve this issue.
Update
|
Generated contracts don't use
This seems to be the right way. I am sure that the truffle folks will be happy to help you. There is also a third way: we can generate missing methods as part of TypeChain generated but I would consider it a last resort fix.
Why do you consider it such a difficult task? I would expect a very similar difficulty level as updating |
No.
Yes. I will try to create a pull request to |
Okay, I figured it out. the So I remember deprecating |
Oh. I didn't know |
This might be worth noting in the truffle-typings package README, so next time we (and the users) know 😅 |
Released: https://github.com/ethereum-ts/TypeChain/releases/tag/%40typechain%2Ftruffle-v5%404.0.1 @odanado Thanks for this! |
For example, properties of
Overloads
ofpackages/target-truffle-v5-test/test/Overloads.test.ts
are different between type and runtime.type:
runtime:
missing properties:
getPastEventsThe text was updated successfully, but these errors were encountered: