aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/transactions/lib
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2018-04-11 05:53:40 +0800
committerfrankiebee <frankie.diamond@gmail.com>2018-04-11 05:54:30 +0800
commit5494aa4f9c34353158dc0c6d07d48abec247ccd8 (patch)
tree1535f92a2ea0c7f66a9744f9643130d1a8919a51 /app/scripts/controllers/transactions/lib
parent2d7c3c2b00a698b19ac015624154c3c1cd2619b2 (diff)
downloadtangerine-wallet-browser-5494aa4f9c34353158dc0c6d07d48abec247ccd8.tar.gz
tangerine-wallet-browser-5494aa4f9c34353158dc0c6d07d48abec247ccd8.tar.zst
tangerine-wallet-browser-5494aa4f9c34353158dc0c6d07d48abec247ccd8.zip
transactions - lint fixes
Diffstat (limited to 'app/scripts/controllers/transactions/lib')
-rw-r--r--app/scripts/controllers/transactions/lib/util.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/scripts/controllers/transactions/lib/util.js b/app/scripts/controllers/transactions/lib/util.js
index f403b0758..5d5e63c59 100644
--- a/app/scripts/controllers/transactions/lib/util.js
+++ b/app/scripts/controllers/transactions/lib/util.js
@@ -7,7 +7,7 @@ module.exports = {
normalizeTxParams,
validateTxParams,
validateFrom,
- validateRecipient
+ validateRecipient,
}
@@ -48,19 +48,19 @@ function validateTxParams (txParams) {
}
function validateFrom (txParams) {
- if ( !(typeof txParams.from === 'string') ) throw new Error(`Invalid from address ${txParams.from} not a string`)
+ if (!(typeof txParams.from === 'string')) throw new Error(`Invalid from address ${txParams.from} not a string`)
if (!isValidAddress(txParams.from)) throw new Error('Invalid from address')
}
function validateRecipient (txParams) {
- if (txParams.to === '0x' || txParams.to === null ) {
+ if (txParams.to === '0x' || txParams.to === null) {
if (txParams.data) {
delete txParams.to
} else {
throw new Error('Invalid recipient address')
}
- } else if ( txParams.to !== undefined && !isValidAddress(txParams.to) ) {
+ } else if (txParams.to !== undefined && !isValidAddress(txParams.to)) {
throw new Error('Invalid recipient address')
}
return txParams
-} \ No newline at end of file
+}