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/index.js | |
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/index.js')
-rw-r--r-- | app/scripts/controllers/transactions/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/controllers/transactions/index.js b/app/scripts/controllers/transactions/index.js index 3d6f5beb5..16f7291d6 100644 --- a/app/scripts/controllers/transactions/index.js +++ b/app/scripts/controllers/transactions/index.js @@ -10,7 +10,7 @@ const NonceTracker = require('./nonce-tracker') const txUtils = require('./lib/util') const cleanErrorStack = require('../../lib/cleanErrorStack') const log = require('loglevel') -const recipientBlackListChecker = require('./lib/recipient-blacklist-checker') +const recipientBlacklistChecker = require('./lib/recipient-blacklist-checker') /** Transaction Controller is an aggregate of sub-controllers and trackers @@ -161,7 +161,7 @@ class TransactionController extends EventEmitter { try { // check whether recipient account is public - await recipientBlackListChecker.checkAccount(txMeta.metamaskNetworkId, normalizedTxParams.to) + await recipientBlacklistChecker.checkAccount(txMeta.metamaskNetworkId, normalizedTxParams.to) // add default tx params txMeta = await this.addTxGasDefaults(txMeta) } catch (error) { |