mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 19:46:39 +00:00
added local
This commit is contained in:
parent
b2d23b91e7
commit
063f69d51d
1 changed files with 18 additions and 0 deletions
18
lib/local.js
Normal file
18
lib/local.js
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
var addressName = {"0x12378912345789": "Gav", "0x57835893478594739854": "Jeff"};
|
||||||
|
var nameAddress = {};
|
||||||
|
|
||||||
|
for (var prop in addressName) {
|
||||||
|
if (addressName.hasOwnProperty(prop)) {
|
||||||
|
nameAddress[addressName[prop]] = prop;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var local = {
|
||||||
|
addressBook:{
|
||||||
|
byName: addressName,
|
||||||
|
byAddress: nameAddress
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (typeof(module) !== "undefined")
|
||||||
|
module.exports = local;
|
||||||
Loading…
Reference in a new issue