mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
18 lines
259 B
JavaScript
18 lines
259 B
JavaScript
/* CONTRACT NAMER
|
|
*
|
|
* Takes an address,
|
|
* Returns a nicname if we have one stored,
|
|
* otherwise returns null.
|
|
*/
|
|
|
|
const nicknames = {}
|
|
|
|
module.exports = function(address) {
|
|
|
|
if (address in nicknames) {
|
|
return nicknames[address]
|
|
}
|
|
|
|
return null
|
|
}
|