diff options
author | Csaba Solya <csaba.solya@gmail.com> | 2018-05-30 23:38:27 +0800 |
---|---|---|
committer | Csaba Solya <csaba.solya@gmail.com> | 2018-05-30 23:38:27 +0800 |
commit | cf73581c0e1a90371fb23eb05318ce39027325b5 (patch) | |
tree | 88ebf759c5261ba74a40a2b748a03eb610a408a1 /app/scripts/controllers/transactions/lib | |
parent | 6affd8f9492e04cdc81007e4f5390e4faa56499d (diff) | |
download | tangerine-wallet-browser-cf73581c0e1a90371fb23eb05318ce39027325b5.tar tangerine-wallet-browser-cf73581c0e1a90371fb23eb05318ce39027325b5.tar.gz tangerine-wallet-browser-cf73581c0e1a90371fb23eb05318ce39027325b5.tar.bz2 tangerine-wallet-browser-cf73581c0e1a90371fb23eb05318ce39027325b5.tar.lz tangerine-wallet-browser-cf73581c0e1a90371fb23eb05318ce39027325b5.tar.xz 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.js | 6 |
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 +} |