1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Move off in operator

This commit is contained in:
Dan Finlay 2017-05-26 10:54:16 -07:00
parent 1203bd15c2
commit 5e6b230821

View File

@ -11,7 +11,7 @@ const ethUtil = require('ethereumjs-util')
module.exports = function (addr, identities = {}) {
const checksummed = ethUtil.toChecksumAddress(addr)
if (checksummed in contractMap && 'name' in contractMap[checksummed]) {
if (contractMap.checksummed && contractMap[checksummed].name) {
return contractMap[checksummed].name
}