Initialization Error: Unhandled rejection TypeError: this.provider.sendAsync is not a function
Closed this issue · 4 comments
meinto commented
I applied the fix of the pull request (which is not published to npm yet) 03c7f59
and initialized the ENS library like follows:
var Web3 = require('web3')
var ENS = require('ethereum-ens')
var provider = new Web3.providers.HttpProvider("https://ropsten.infura.io/TOKEN")
var ens = new ENS(provider)
Only this piece of code throws the mentioned error Unhandled rejection TypeError: this.provider.sendAsync is not a function.
The used HttpProvider
is a testnet (ropsten). Are you familiar with this problem?
used ensjs version is 0.7.3
used web3 version is 1.0.0-beta.27
Arachnid commented
ensjs doesn't yet support web3 1.0.
meinto commented
Ok, thanks for the info. Is there a roadmap supporting web3 version 1.0?
Arachnid commented
I've opened an issue for this: #17
No firm roadmap, but we hope to be able to work on this soon.
meinto commented
Ok, thanks! Would be great!