Open brendandebeasi opened 2 years ago
I'm also running into this problem. I use ensjs solely for lookups, so this makes the library unusable for my purposes.
I've been able to get it to work by just adding a getSigner()
property that does nothing:
const provider = new ethers.providers.InfuraProvider('mainnet', {});
provider.getSigner = () => {};
Take the code
Will fail on line 2 with
no method exists getSigner()
Called on line
node_modules/@ensdomains/ensjs/dist/index.js:1035
Solution is to only set this.signer if the provider implements it.