aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/transactions/lib/recipient-blacklist-checker.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/controllers/transactions/lib/recipient-blacklist-checker.js')
-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
+}