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

Fix contract map reference

This commit is contained in:
Dan Finlay 2017-05-26 11:05:51 -07:00
parent 5e6b230821
commit fd42d7bfd5

View File

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