diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-06-06 03:09:19 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-06-06 03:09:19 +0800 |
commit | 653319be1055b8ff0a36cb334c93ac7435f1fc5c (patch) | |
tree | d686e751fbdfde49559efb575ab322f6f8f21115 /ui/app/components/pending-tx.js | |
parent | 37fd32025f9cb5dffb601011e2442efee59e3595 (diff) | |
download | tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.gz tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.bz2 tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.lz tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.xz tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.tar.zst tangerine-wallet-browser-653319be1055b8ff0a36cb334c93ac7435f1fc5c.zip |
move address check to util.isValidAddress
Diffstat (limited to 'ui/app/components/pending-tx.js')
-rw-r--r-- | ui/app/components/pending-tx.js | 4 |
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 |