Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Feature request: Expose registry address property #41

Open
eggplantzzz opened this issue Jul 25, 2019 · 0 comments
Open

Feature request: Expose registry address property #41

eggplantzzz opened this issue Jul 25, 2019 · 0 comments

Comments

@eggplantzzz
Copy link

eggplantzzz commented Jul 25, 2019

This issue is a request for the address of the registry that the library is connected to to be exposed as a property on the instance. So for example, I would like to be able to do the following:

const ENSJS = require("ethereum-ens");
const provider = <someValidProviderForMainnet>;
const ensjs = new ENSJS(provider);
ensjs.address
> 0x314159265dd8dbb310642f98f50c066173c1259b // address for the mainnet ENS registry

Currently I am using the address found at ensjs.registryPromise._rejectionHandler0._address but this does not seem ideal. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant