mirror of https://github.com/status-im/web3.js.git
added addressbook
This commit is contained in:
parent
e1fcffcc81
commit
fa93480d9a
|
@ -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 New Issue