aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-06-06 03:09:19 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-06-06 03:09:19 +0800
commit653319be1055b8ff0a36cb334c93ac7435f1fc5c (patch)
treed686e751fbdfde49559efb575ab322f6f8f21115 /ui/app/components
parent37fd32025f9cb5dffb601011e2442efee59e3595 (diff)
downloadtangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.gz
tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.zst
tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.zip
move address check to util.isValidAddress
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/pending-tx.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 2d4dc26a2..56c466506 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -7,7 +7,7 @@ const clone = require('clone')
const ethUtil = require('ethereumjs-util')
const BN = ethUtil.BN
const hexToBn = require('../../../app/scripts/lib/hex-to-bn')
-
+const util = require('../util')
const MiniAccountPanel = require('./mini-account-panel')
const EthBalance = require('./eth-balance')
const util = require('../util')
@@ -45,7 +45,7 @@ PendingTx.prototype.render = function () {
const balance = account ? account.balance : '0x0'
// recipient check
- const isValidAddress = !(txParams.to === '0x0000000000000000000000000000000000000000')
+ const isValidAddress = util.isValidAddress(txParams.to)
// Gas
const gas = txParams.gas