Skip to content

Support passing a BaseProvider as a custom provider#170

Open
mdehoog wants to merge 1 commit intoensdomains:masterfrom
mdehoog:custom-network
Open

Support passing a BaseProvider as a custom provider#170
mdehoog wants to merge 1 commit intoensdomains:masterfrom
mdehoog:custom-network

Conversation

@mdehoog
Copy link

@mdehoog mdehoog commented Jul 30, 2022

I've deployed ENS to a private PoA network that we use for internal testing. To get ens-app working, I needed to be able to pass a provider with a custom network (with a different ENS contract address) to this library.

This PR checks if the customProvider is a ethers.providers.BaseProvider, and if so uses it directly rather than wrapping it.

@mdehoog mdehoog marked this pull request as draft July 30, 2022 21:11
@mdehoog mdehoog marked this pull request as ready for review July 30, 2022 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant