aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/transactions/lib
diff options
context:
space:
mode:
authorCsaba Solya <csaba.solya@gmail.com>2018-05-30 23:38:27 +0800
committerCsaba Solya <csaba.solya@gmail.com>2018-05-30 23:38:27 +0800
commitcf73581c0e1a90371fb23eb05318ce39027325b5 (patch)
tree88ebf759c5261ba74a40a2b748a03eb610a408a1 /app/scripts/controllers/transactions/lib
parent6affd8f9492e04cdc81007e4f5390e4faa56499d (diff)
downloadtangerine-wallet-browser-cf73581c0e1a90371fb23eb05318ce39027325b5.tar.gz
tangerine-wallet-browser-cf73581c0e1a90371fb23eb05318ce39027325b5.tar.zst
tangerine-wallet-browser-cf73581c0e1a90371fb23eb05318ce39027325b5.zip
adding tests for recipient blacklist checker
Diffstat (limited to 'app/scripts/controllers/transactions/lib')
-rw-r--r--app/scripts/controllers/transactions/lib/recipient-blacklist-checker.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/controllers/transactions/lib/recipient-blacklist-checker.js b/app/scripts/controllers/transactions/lib/recipient-blacklist-checker.js
index c52e58863..414302d12 100644
--- a/app/scripts/controllers/transactions/lib/recipient-blacklist-checker.js
+++ b/app/scripts/controllers/transactions/lib/recipient-blacklist-checker.js
@@ -12,8 +12,8 @@ module.exports = {
*/
async function checkAccount (networkId, account) {
- // mainnet's network id === 1
- if (networkId !== 1) {
+ const mainnetId = 1
+ if (networkId !== mainnetId) {
return
}
@@ -33,4 +33,4 @@ async function checkAccount (networkId, account) {
throw new Error('Recipient is a public account')
}
}
-} \ No newline at end of file
+}