aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib/contract-namer.js
blob: eae066ad5cdece758c20c71b4afdf63203c98695 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* 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
}