question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for web3 1.0.0

See original GitHub issue

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 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:39 (27 by maintainers)

github_iconTop GitHub Comments

3reactions
krzkaczorcommented, Sep 12, 2018

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.

2reactions
krzkaczorcommented, Sep 14, 2018

@vs77bb wow, thanks! It’s the very first time that I used gitcoin and I am surprised how pleasant process it was 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found