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:
parent
1203bd15c2
commit
5e6b230821
@ -11,7 +11,7 @@ const ethUtil = require('ethereumjs-util')
|
|||||||
|
|
||||||
module.exports = function (addr, identities = {}) {
|
module.exports = function (addr, identities = {}) {
|
||||||
const checksummed = ethUtil.toChecksumAddress(addr)
|
const checksummed = ethUtil.toChecksumAddress(addr)
|
||||||
if (checksummed in contractMap && 'name' in contractMap[checksummed]) {
|
if (contractMap.checksummed && contractMap[checksummed].name) {
|
||||||
return contractMap[checksummed].name
|
return contractMap[checksummed].name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user