aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-04 07:34:55 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-04 07:34:55 +0800
commitabebe51f69ea3ae02ac8d94f7fe739d754eedf7a (patch)
tree2136a0f81f67082825a936be4983ad03dadbe91e /app/scripts
parentba7d6b437f2e03a9e2bb46dcda846cee1f816ce1 (diff)
downloadtangerine-wallet-browser-abebe51f69ea3ae02ac8d94f7fe739d754eedf7a.tar
tangerine-wallet-browser-abebe51f69ea3ae02ac8d94f7fe739d754eedf7a.tar.gz
tangerine-wallet-browser-abebe51f69ea3ae02ac8d94f7fe739d754eedf7a.tar.bz2
tangerine-wallet-browser-abebe51f69ea3ae02ac8d94f7fe739d754eedf7a.tar.lz
tangerine-wallet-browser-abebe51f69ea3ae02ac8d94f7fe739d754eedf7a.tar.xz
tangerine-wallet-browser-abebe51f69ea3ae02ac8d94f7fe739d754eedf7a.tar.zst
tangerine-wallet-browser-abebe51f69ea3ae02ac8d94f7fe739d754eedf7a.zip
Add tolerance to normalize method
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/keyring-controller.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index 81a05e133..1ca34e0f2 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -584,6 +584,7 @@ module.exports = class KeyringController extends EventEmitter {
}
function normalize(address) {
+ if (!address) return
return ethUtil.addHexPrefix(address.toLowerCase())
}