aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/transactions/lib
diff options
context:
space:
mode:
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
+}