Export blacklist direct from recipient-blacklist (#8364)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent bc99728e84
commit 7c3ffeb841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/scripts/controllers/transactions/lib/recipient-blacklist-checker.js
  2. 8
      app/scripts/controllers/transactions/lib/recipient-blacklist.js

@ -1,4 +1,4 @@
import Config from './recipient-blacklist.js'
import blacklist from './recipient-blacklist'
/** @module*/
export default {
@ -18,7 +18,7 @@ function checkAccount (networkId, account) {
}
const accountToCheck = account.toLowerCase()
if (Config.blacklist.includes(accountToCheck)) {
if (blacklist.includes(accountToCheck)) {
throw new Error('Recipient is a public account')
}
}

@ -1,5 +1,4 @@
export default {
'blacklist': [
const blacklist = [
// IDEX phisher
'0x9bcb0A9d99d815Bb87ee3191b1399b1Bcc46dc77',
// Ganache default seed phrases
@ -13,5 +12,6 @@ export default {
'0x0f4f2ac550a1b4e2280d04c21cea7ebd822934b5',
'0x6330a553fc93768f612722bb8c2ec78ac90b3bbc',
'0x5aeda56215b167893e80b4fe645ba6d5bab767de',
],
}
]
export default blacklist

Loading…
Cancel
Save