diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-07 08:58:46 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-07 08:58:46 +0800 |
commit | 7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2 (patch) | |
tree | 5364558379541311895ddd20c2675739541da5e4 /ui/lib | |
parent | 2c89cd722ed66f9f8522913b1a5bbc55ce5a7ca6 (diff) | |
download | tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar.gz tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar.bz2 tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar.lz tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar.xz tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar.zst tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.zip |
Began reworking tx conf view
Diffstat (limited to 'ui/lib')
-rw-r--r-- | ui/lib/contract-namer.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/lib/contract-namer.js b/ui/lib/contract-namer.js new file mode 100644 index 000000000..eae066ad5 --- /dev/null +++ b/ui/lib/contract-namer.js @@ -0,0 +1,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 +} |