Support for web3 1.0.0
See original GitHub issueAlthough web3 1.0.0 is still in beta it is now the default install candidate for npm so trying to use the default web3 with typechain doesn’t work.
The specific problem seems to stem from a backwards incompatible API change they’ve made:
TypeError: web3.eth.contract is not a function
at new TypeChainContract (typechain-runtime.js:5)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:39 (27 by maintainers)
Top Results From Across the Web
Getting Started — web3.js 1.0.0 documentation
First you need to get web3.js into your project. This can be done using the following methods: ... After that you need to...
Read more >1.0.0-beta.37 - web3 - npm
Ethereum JavaScript API. Latest version: 1.8.1, last published: a month ago. Start using web3 in your project by running `npm i web3`.
Read more >Support for web3 1.0.0 · Issue #25 · dethcrypto/TypeChain
Although web3 1.0.0 is still in beta it is now the default install candidate for npm so trying to use the default web3...
Read more >how to install web3 (1.0.0)? - Ethereum Stack Exchange
trevor@bridge2:~$ sudo npm install web3 npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support npm WARN ...
Read more >web3 | Yarn - Package Manager
Changelog · 1]. Fixed. websocket dependency fixed (#2971, #2976) · 2]. Added. localStorage support detection added (#3031) · 3]. Fixed. Fix perfect gas...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s done and released as
0.3.2
📦 CC: @StevenJNPearce, @vs77bb, @pelsasser.As I mentioned before, if you used typechain before
0.3
version (legacy target) you need to manually fix your code. Basically now typechain generates pure typings on target library, no wrappers. Hopefully, it should be easy process — tsc should find all breaking changes for you.@vs77bb wow, thanks! It’s the very first time that I used gitcoin and I am surprised how pleasant process it was 👍