Updated ENS registry address for all networks.
This commit is contained in:
parent
b288ad9ba7
commit
df51b26fe7
@ -46,14 +46,14 @@ function etcDefaultProvider(url: string, network: string): (providers: any) => a
|
|||||||
|
|
||||||
const homestead: Network = {
|
const homestead: Network = {
|
||||||
chainId: 1,
|
chainId: 1,
|
||||||
ensAddress: "0x314159265dd8dbb310642f98f50c066173c1259b",
|
ensAddress: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
|
||||||
name: "homestead",
|
name: "homestead",
|
||||||
_defaultProvider: ethDefaultProvider('homestead')
|
_defaultProvider: ethDefaultProvider('homestead')
|
||||||
};
|
};
|
||||||
|
|
||||||
const ropsten: Network = {
|
const ropsten: Network = {
|
||||||
chainId: 3,
|
chainId: 3,
|
||||||
ensAddress: "0x112234455c3a32fd11230c42e7bccd4a84e02010",
|
ensAddress: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
|
||||||
name: "ropsten",
|
name: "ropsten",
|
||||||
_defaultProvider: ethDefaultProvider('ropsten')
|
_defaultProvider: ethDefaultProvider('ropsten')
|
||||||
};
|
};
|
||||||
@ -77,14 +77,14 @@ const networks: { [name: string]: Network } = {
|
|||||||
|
|
||||||
rinkeby: {
|
rinkeby: {
|
||||||
chainId: 4,
|
chainId: 4,
|
||||||
ensAddress: "0xe7410170f87102DF0055eB195163A03B7F2Bff4A",
|
ensAddress: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
|
||||||
name: 'rinkeby',
|
name: 'rinkeby',
|
||||||
_defaultProvider: ethDefaultProvider('rinkeby')
|
_defaultProvider: ethDefaultProvider('rinkeby')
|
||||||
},
|
},
|
||||||
|
|
||||||
goerli: {
|
goerli: {
|
||||||
chainId: 5,
|
chainId: 5,
|
||||||
ensAddress: "0x112234455c3a32fd11230c42e7bccd4a84e02010",
|
ensAddress: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
|
||||||
name: "goerli",
|
name: "goerli",
|
||||||
_defaultProvider: ethDefaultProvider('goerli')
|
_defaultProvider: ethDefaultProvider('goerli')
|
||||||
},
|
},
|
||||||
|
@ -393,6 +393,15 @@ function testProvider(providerName, networkName) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (networkName === "homestead") {
|
||||||
|
it('fetches ENS names', function() {
|
||||||
|
this.timeout(20000);
|
||||||
|
return provider.resolveName("ricmoo.firefly.eth").then(function(address) {
|
||||||
|
assert.equal(address, "0x8ba1f109551bD432803012645Ac136ddd64DBA72");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Obviously many more cases to add here
|
// Obviously many more cases to add here
|
||||||
// - getTransactionCount
|
// - getTransactionCount
|
||||||
// - getCode
|
// - getCode
|
||||||
|
Loading…
Reference in New Issue
Block a user